I'm having an issue right now with some pages on my site. Please compare their loading speeds, and if you have any clue why the second one might be loading so slow please reply. http://www.layoutsmart.com/alcoholanddrugs.php loads quick http://www.layoutsmart.com/contacttables/alcoholanddrugs/ loads extremely slow
http://www.layoutsmart.com/contactta...coholanddrugs/ is slow do you have any heavy SQL queries in that page?
There seems to be a delay in rendering for the second one suggesting server side issues. Have you tried comparing the execution times for the PHP code? A quick glance at the HTML hints that there is nothing wrong with the output.
Would it have anything to do with the version of PHP my server is running? It is running Version 4.4.7 , should I upgrade it to the newest version?
load times are displayed here, there are 6 includes and if u look carefully u can see all the load times. http://www.layoutsmart.com/contacttables/Christmas/page01/contacttable11/
heres the one that seemed to load faster. the load speed is in the footer. http://www.layoutsmart.com/baseball.php so is what i need to do is cut down on the includes? or is there another fix?
It seems like the load speed is all over the place, sometimes its slow sometimes it fast. Also, it's not that any particular item on the page is holding things up, but it's as if the delay is in the initial request to the server. I did a few refreshes and on one of them an error showed up on line 3 of /contacttables/alcoholanddrugs/page01/index.php Warning: main() [function.main]: php_network_getaddresses: getaddrinfo failed: Name or service not known If you are using some kind of a DNS related name resolving, it might be the part thats slowing down the page sometimes when it can't resolve the address quickly.
Hmmm I see, not sure about the DNS problem. Would it have to do with me running PHproxy on the server slowing down php execution times?
The miracle of browser caching http://www.php.net/microtime Try one of those methods for determining how long PHP is actually processing. If the times are relatively low and standard across the board, then your DNS server or your apache are just taking some time to load up the relevant data and feed it to the user, so it'd be more of a bandwidth, server load or max connections issue than actual code.
Where you by any chance including your files by HTTP as opposed to the filesystem? That is to say, were your includes of the form: include( 'http://servername.com/somepagetoinclude.php' ); as opposed to: include( 'somepagetoinclude.php' ); ?
I wonder if it's something else, since the pages were all generated via php and includes. I'm still a php nube, but I thought php never got cached. I'm guessing the server saves the interpreted version of the page.
PHP itself doesn't get cached by the server, but your browser at least caches stylesheets and the images, so pages will display faster because it's using images and styling already stored in it's memory.