Forum Moderators: coopster

Message Too Old, No Replies

php not being parsed

but it depends on location

         

dhiggerdhigger

8:00 pm on Sep 29, 2006 (gmt 0)

10+ Year Member



A friend of mine has space on a server at a school. When he's at school, php pages aren't parsed when he browses to them, but when he's at home, they are parsed fine. Why might this be happening?

(Apache/2.0.51 and PHP 4.3.10 as a module)

Birdman

8:22 pm on Sep 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It sounds like a rule in the Apache config file or .htaccess causing it. When your friend is at school the requests probably come from local network (LAN), and when at home they are from wide network (WAN).

You could try using a proxy server when at school.

spinnercee

8:28 pm on Sep 29, 2006 (gmt 0)

10+ Year Member



Maybe the URL is different remotely, or the Apache HTTPd is rewriting the URLs based on source IP. The servers could actually be different -- one server to service public requests and a second server handling LAN requests, each could be configured diferently.

Make sure that the URL used at school is not an ftp: URL -- FTP servers don't parse/run PHP.

It may also be by design (security)...