DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   PHP files not dispalying in browser (http://www.daniweb.com/forums/thread173318.html)

MrMellow Feb 3rd, 2009 3:52 pm
PHP files not dispalying in browser
 
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!!!

jencinas69 Feb 3rd, 2009 4:41 pm
Re: PHP files not dispalying in browser
 
ok what is your domain?
You have to make sure that your server support php

MrMellow Feb 3rd, 2009 4:46 pm
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


Quote:

Originally Posted by jencinas69 (Post 795198)
ok what is your domain?
You have to make sure that your server support php


jencinas69 Feb 3rd, 2009 4:49 pm
Re: PHP files not dispalying in browser
 
do you have an index.php file?

jbennet Feb 3rd, 2009 4:52 pm
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?

MrMellow Feb 3rd, 2009 4:56 pm
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

Quote:

Originally Posted by jbennet (Post 795210)
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?


jencinas69 Feb 3rd, 2009 5:11 pm
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

MrMellow Feb 3rd, 2009 5:14 pm
Re: PHP files not dispalying in browser
 
yes

jencinas69 Feb 3rd, 2009 5:16 pm
Re: PHP files not dispalying in browser
 
Send me the mission.php code

almostbob Feb 3rd, 2009 11:00 pm
Re: PHP files not dispalying in browser
 
Quote:

Originally Posted by jencinas69 (Post 795219)
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']


All times are GMT -4. The time now is 4:43 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC