Pages are different when viewed from outside...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
applestomp
Forum Newbie
Posts: 3
Joined: Tue Aug 18, 2009 9:31 am

Pages are different when viewed from outside...

Post 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?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Pages are different when viewed from outside...

Post by jackpf »

How are you viewing the pages? Are you going to localhost, or 127.0.0.1?
applestomp
Forum Newbie
Posts: 3
Joined: Tue Aug 18, 2009 9:31 am

Re: Pages are different when viewed from outside...

Post 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.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Pages are different when viewed from outside...

Post by jackpf »

Well don't. You need to access them through your web server.
applestomp
Forum Newbie
Posts: 3
Joined: Tue Aug 18, 2009 9:31 am

Re: Pages are different when viewed from outside...

Post by applestomp »

Oh.

Thank you. :) Duh.

I feel silly.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Pages are different when viewed from outside...

Post by jackpf »

Lol no worries.
Post Reply