Page 1 of 1
Pages are different when viewed from outside...
Posted: Tue Aug 18, 2009 9:32 am
by applestomp
I am running PHP on Apache on Fedora 10 -- when I view some pages from 'var/www/html/' in my browser, they are messed up. Chunks of code are evidently written on the page for no reason. When viewed from outside they look normal. Why would this be?
Re: Pages are different when viewed from outside...
Posted: Tue Aug 18, 2009 9:34 am
by jackpf
How are you viewing the pages? Are you going to localhost, or 127.0.0.1?
Re: Pages are different when viewed from outside...
Posted: Tue Aug 18, 2009 9:44 am
by applestomp
jackpf wrote:How are you viewing the pages? Are you going to localhost, or 127.0.0.1?
Putting either of those in my address bar makes the pages render properly. If i put "var/www/html/Default.php" into my address bar, it's all muss'd up.
Re: Pages are different when viewed from outside...
Posted: Tue Aug 18, 2009 10:51 am
by jackpf
Well don't. You need to access them through your web server.
Re: Pages are different when viewed from outside...
Posted: Tue Aug 18, 2009 11:17 am
by applestomp
Oh.
Thank you.

Duh.
I feel silly.
Re: Pages are different when viewed from outside...
Posted: Tue Aug 18, 2009 11:43 am
by jackpf
Lol no worries.