PHP files not dispalying in browser

Reply

Join Date: Feb 2009
Posts: 4
Reputation: MrMellow is an unknown quantity at this point 
Solved Threads: 0
MrMellow MrMellow is offline Offline
Newbie Poster

PHP files not dispalying in browser

 
0
  #1
Feb 3rd, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 68
Reputation: jencinas69 is an unknown quantity at this point 
Solved Threads: 1
jencinas69's Avatar
jencinas69 jencinas69 is offline Offline
Junior Poster in Training

Re: PHP files not dispalying in browser

 
0
  #2
Feb 3rd, 2009
ok what is your domain?
You have to make sure that your server support php
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 4
Reputation: MrMellow is an unknown quantity at this point 
Solved Threads: 0
MrMellow MrMellow is offline Offline
Newbie Poster

Re: PHP files not dispalying in browser

 
0
  #3
Feb 3rd, 2009
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


Originally Posted by jencinas69 View Post
ok what is your domain?
You have to make sure that your server support php
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 68
Reputation: jencinas69 is an unknown quantity at this point 
Solved Threads: 1
jencinas69's Avatar
jencinas69 jencinas69 is offline Offline
Junior Poster in Training

Re: PHP files not dispalying in browser

 
0
  #4
Feb 3rd, 2009
do you have an index.php file?
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,144
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 531
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: PHP files not dispalying in browser

 
0
  #5
Feb 3rd, 2009
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.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 4
Reputation: MrMellow is an unknown quantity at this point 
Solved Threads: 0
MrMellow MrMellow is offline Offline
Newbie Poster

Re: PHP files not dispalying in browser

 
0
  #6
Feb 3rd, 2009
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

Originally Posted by jbennet View Post
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?
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 68
Reputation: jencinas69 is an unknown quantity at this point 
Solved Threads: 1
jencinas69's Avatar
jencinas69 jencinas69 is offline Offline
Junior Poster in Training

Re: PHP files not dispalying in browser

 
0
  #7
Feb 3rd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 4
Reputation: MrMellow is an unknown quantity at this point 
Solved Threads: 0
MrMellow MrMellow is offline Offline
Newbie Poster

Re: PHP files not dispalying in browser

 
0
  #8
Feb 3rd, 2009
yes
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 68
Reputation: jencinas69 is an unknown quantity at this point 
Solved Threads: 1
jencinas69's Avatar
jencinas69 jencinas69 is offline Offline
Junior Poster in Training

Re: PHP files not dispalying in browser

 
0
  #9
Feb 3rd, 2009
Send me the mission.php code
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,315
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 161
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: PHP files not dispalying in browser

 
0
  #10
Feb 3rd, 2009
Originally Posted by jencinas69 View Post
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
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC