Re: Scripts are fast locally, but slow on remote server
| From: | Richard Lynch | Date: | Wed, 16 Jan 2008 17:54:36 +0000 |
| Subject: | Re: Scripts are fast locally, but slow on remote server | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267411@lists.php.net to get a copy of this message | ||
On Wed, January 16, 2008 1:29 am, 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.
Try it with just this in a .php file:
<?php phpinfo();?>
Is *that* slow the first time?
Also try it with:
<?php echo "Hello World!"?>
Is that slow the first time?
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?