|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33483 There is a delay in retrieving a webpage from some sites using file()
Submitted: 2005-06-27 04:13 UTC Modified: 2005-06-30 08:59 UTC
From: bong at icasolution dot com dot au Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 4.3.10 OS: Linux Ubuntu (Hoary Hedgehog)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: bong at icasolution dot com dot au
New email:
PHP Version: OS:


 [2005-06-27 04:13 UTC] bong at icasolution dot com dot au
When retrieving a web page using file() from, say,, 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:

$file = file("");


Expected result:
HTML of the retrieved page, which I get, but not before a delay of several seconds.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-30 08:41 UTC] 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-30 08:45 UTC] 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:

and for 1 July 2005, it would be:

and so on.
 [2005-06-30 08:59 UTC]
Linux kernel issues are not PHP bugs..
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 08:01:30 2024 UTC