Re: [PHP] Scripts are fast locally, but slow on remote server



Dave M G wrote:
Per Jessen,

Thank you for responding.

Might this be a name-server issue?

Maybe, but I don't think so. The reason I suspect that is not the case is because I can go first to a .html page on the server, and it loads up quickly. Then I go to one of my .php pages, and the slowdown occurs.

If it were a name server issue, I would expect the slowdown to happen regardless of which page I load first.

So, I guess to be more specific, the slowdown happens the first time I load one of my PHP scripts on this site, not the first time I access the site.

And what does the script do? Connect to a database? Ping a server? "X"? :)

If it's connect to a database, does it use the 'name' of the server or the ip address or is it localhost?

Does it do lots of queries?

.....

--
Postgresql & php tutorials
http://www.designmagick.com/
.



Relevant Pages

  • Re: about structure.
    ... Of course if you want to use a load of checkboxes, it works too, just modify ... I thought about using a database... ... "I thought about using php... ... server needs to call upon php... ...
    (alt.php)
  • Re: [PHP] RE: Reaching the PHP mailing list owners
    ... It appears the site uses php, ... within the site load blindingly fast. ... How fast is the server hardware that handles the processing. ... both bandwidth and latency (latency being the round trip time ...
    (php.general)
  • Re: Including PHP scripts on same server
    ... and rarely have a load that's high enough to be noticed. ... One way to reduce RAM usage is to create a custom shareable library in C, and put PHP wrappers on it. ... to push it off as long as I can with code and server config tweaks. ...
    (comp.lang.php)
  • Load increase after upgrading php4
    ... Early September I upgraded php4 using the new php port structure (that ... increase in server load - I'd say my current load is about five times ... The server is running Nick Lindridge's ...
    (freebsd-questions)
  • Re: [PHP] Scripts are fast locally, but slow on remote server
    ... Then I go to one of my .php pages, and the slowdown occurs. ... regardless of which page I load first. ... So, I guess to be more specific, the slowdown happens the first time I ...
    (php.general)