943,515 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 673
  • PHP RSS
Feb 3rd, 2009
0

PHP files not dispalying in browser

Expand Post »
Hi im new to the site and my question is why wont my php files display in my browser?
I have 10 years exp with html but i turned my site over to a developer he put in php.
Now when i go to upload my site to a different domain it wont show.
Is it possible for me to be locked out from posting my sites when and where ever and its my server. Also i have created a fresh .com on my server and when i upload i get nothing. HELP PLEASE!!!
Last edited by MrMellow; Feb 3rd, 2009 at 4:04 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MrMellow is offline Offline
4 posts
since Feb 2009
Feb 3rd, 2009
0

Re: PHP files not dispalying in browser

ok what is your domain?
You have to make sure that your server support php
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
jencinas69 is offline Offline
68 posts
since Nov 2007
Feb 3rd, 2009
0

Re: PHP files not dispalying in browser

It does i have 4 sites up that arre the same.
They were posted by my developer and when i try it doesnt work. I am currently working through the FTP to see the server itself and not expressions. i think i may be missing a file, so i am comparing both file managers


Click to Expand / Collapse  Quote originally posted by jencinas69 ...
ok what is your domain?
You have to make sure that your server support php
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MrMellow is offline Offline
4 posts
since Feb 2009
Feb 3rd, 2009
0

Re: PHP files not dispalying in browser

do you have an index.php file?
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
jencinas69 is offline Offline
68 posts
since Nov 2007
Feb 3rd, 2009
0

Re: PHP files not dispalying in browser

You cant just view them.
They are web pages, they are code.
They run on a server then the server returns the HTML. Thats why its dynamic.

Sure your server supports PHP?
Last edited by jbennet; Feb 3rd, 2009 at 4:52 pm.
Moderator
Featured Poster
Reputation Points: 1764
Solved Threads: 574
Moderator
jbennet is offline Offline
16,485 posts
since Apr 2005
Feb 3rd, 2009
0

Re: PHP files not dispalying in browser

www.wiltonlimo.com
www.westportlimo.com
www.fairfieldlimousine.com
all are on the same server i have like 5 more names that i want to publish to as well, check it out

Click to Expand / Collapse  Quote originally posted by jbennet ...
You cant just view them.
They are web pages, they are code.
They run on a server then the server returns the HTML. Thats why its dynamic.

Sure your server supports PHP?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MrMellow is offline Offline
4 posts
since Feb 2009
Feb 3rd, 2009
0

Re: PHP files not dispalying in browser

this is the only error I get in the about us page

Notice: Undefined variable: HTTP_USER_AGENT in /home/www/fairfieldlimousine/mission.php on line 25

Notice: Undefined variable: HTTP_USER_AGENT in /home/www/fairfieldlimousine/mission.php on line 31

in this domain www.fairfieldlimousine.com
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
jencinas69 is offline Offline
68 posts
since Nov 2007
Feb 3rd, 2009
0

Re: PHP files not dispalying in browser

yes
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MrMellow is offline Offline
4 posts
since Feb 2009
Feb 3rd, 2009
0

Re: PHP files not dispalying in browser

Send me the mission.php code
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
jencinas69 is offline Offline
68 posts
since Nov 2007
Feb 3rd, 2009
0

Re: PHP files not dispalying in browser

Click to Expand / Collapse  Quote originally posted by jencinas69 ...
this is the only error I get in the about us page

Notice: Undefined variable: HTTP_USER_AGENT in /home/www/fairfieldlimousine/mission.php on line 25

Notice: Undefined variable: HTTP_USER_AGENT in /home/www/fairfieldlimousine/mission.php on line 31

in this domain www.fairfieldlimousine.com
In php versions >=4.20 global variables are turned off anti hacking security
HTTP_USER_AGENT does not exist, ($HTTP_USER_AGENT )

the old domains are running an old(V.old) version of php or have had register_globals turned on to allow bad(old) code to run

the new domain has a newer version of php, or one that has not been altered

now it is $_SERVER['HTTP_USER_AGENT']
Last edited by almostbob; Feb 3rd, 2009 at 11:04 pm. Reason: if you arent careful, makes a very rude word
Reputation Points: 562
Solved Threads: 367
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: if and else statement problem
Next Thread in PHP Forum Timeline: PHP voting





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC