#33483 [Opn->Bgs]: There is a delay in retrieving a webpage from some sites using file()
| From: | sniper@php.net | Date: | Thu, 30 Jun 2005 06:59:54 +0000 |
| Subject: | #33483 [Opn->Bgs]: 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-81193@lists.php.net to get a copy of this message | ||
ID: 33483
Updated by: sniper@php.net
Reported By: bong at icasolution dot com dot au
-Status: Open
+Status: Bogus
Bug Type: HTTP related
Operating System: Linux Ubuntu (Hoary Hedgehog)
PHP Version: 4.3.10
New Comment:
Linux kernel issues are not PHP bugs..
Previous Comments:
------------------------------------------------------------------------
[2005-06-30 08:45:46] bong at icasolution dot com dot au
Sorry, forgot to mention that the URL for testing needs to be updated
as it expires after some days. The URL is date-based so get a valid
page for 30 June 2005, the URL would be:
http://www.tabonline.com.au/2005/06/30/QR04.html
and for 1 July 2005, it would be:
http://www.tabonline.com.au/2005/07/01/QR04.html
and so on.
------------------------------------------------------------------------
[2005-06-30 08:41:09] bong at icasolution dot com dot au
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.
------------------------------------------------------------------------
[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