#33483 [Fbk->Opn]: There is a delay in retrieving a webpage from some sites using file()
| From: | bong at icasolution dot com dot au | Date: | Thu, 30 Jun 2005 06:41:12 +0000 |
| Subject: | #33483 [Fbk->Opn]: There is a delay in retrieving a webpage from some sites using file() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81190@lists.php.net to get a copy of this message | ||
ID: 33483
User updated by: bong at icasolution dot com dot au
Reported By: bong at icasolution dot com dot au
-Status: Feedback
+Status: Open
Bug Type: HTTP related
Operating System: Linux Ubuntu (Hoary Hedgehog)
PHP Version: 4.3.10
New Comment:
Tried the CVS snapshot (php4-STABLE-200506300435) on my Fedora Core 3
system and had the same problem (took about 30 seconds to download the
page). Tried the same script on a FreeBSD 5.4 box and had no delays.
I think this delay occurs with Linux 2.6 kernels.
Previous Comments:
------------------------------------------------------------------------
[2005-06-27 10:52:07] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-06-27 04:13:35] bong at icasolution dot com dot au
Description:
------------
When retrieving a web page using file() from, say,
http://www.tabonline.com.au, there is a delay of several
seconds before
the page is actually retrieved. This happens under Ubuntu (Hoary
Hedgehog, using PHP 4.3.10) and also Fedora Core 3 (PHP 5.0.4). I don't
get the delay under Fedora Core 1 (PHP 4.3.8) or Red Hat 7.3. (PHP
4.3.9).
Reproduce code:
---------------
<?php
$file = file("http://www.tabonline.com.au/2005/06/24/QR04.html");
print_r($file);
?>
Expected result:
----------------
HTML of the retrieved page, which I get, but not before a delay of
several seconds.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33483&edit=1