php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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:

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:59 UTC] sniper@php.net
Linux kernel issues are not PHP bugs..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC