Web Hosting Talk







View Full Version : PHP parse times


SPaReK
04-19-2002, 01:04 PM
I seem to be having trouble with a server of our's and its PHP parsing times. It seems to take forever for me to load a PHP page on the server, while colleagues at another office report no problems at all, loading the same page. We are both on the same ISP (although different calling areas). I don't know if its something on our server or if its something at my ISP. There is a page that I have to view hundreds of times a day, and its coded in PHP. I have to wait sometimes 2 minutes for the page to load, very tedious. HTML pages load fine. If I make a simple HTML page and try to view it, it loads like it should. If I rename the file to a php extension, so the server will parse it as PHP, it takes up to 2 minutes to load. I tried recompiling PHP on the server to no avail. The only thing that I can think of, is that my IP does not resolve. I think my ISP may have gotten some new IP numbers and they just aren't resolving yet. And the fact that my colleagues are in a different calling area, they don't get these IPs. Does PHP have a built-in reverse DNS process? I keep running into brick walls with this, its been doing this for about 2 days. Any help would be appreciated.


Thanks

kunal
04-19-2002, 01:37 PM
can you ping the server fine?

SPaReK
04-19-2002, 02:11 PM
Yea, thats what struck it as being so odd. I did a traceroute to the server and it reported fine. Thats when I noticed the it only affect PHP files. However, I believe I have concluded that it is the fact that my IP doesn't resolve. I added a fake entry in the server's /etc/hosts file, so that my IP resolves to something, and everything seems to be back to normal. Unfortunately, there are several other servers that we have that this affects, and my IP changes every time I dial in. Hopefully the new IPs will start resolving soon, so that I won't have to make entries in the /etc/hosts file everytime I reconnect.