note 74551 added to function.file-get-contents
| From: | (greg@catalina-it.com.au) | Date: | Tue, 17 Apr 2007 04:37:18 +0000 |
| Subject: | note 74551 added to function.file-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125489@lists.php.net to get a copy of this message | ||
The only way I could get get_file_contents() to wait for a very slow http request was to set the
socket timeout as follows.
ini_set('default_socket_timeout', 120);
$a = file_get_contents("http://abcxyz.com");
Other times like execution time and input time had no effect.
----
Server IP: 203.220.0.234
Probable Submitter: 218.214.3.75
----
Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php
Edit -- https://master.php.net/note/edit/74551
Del: integrated -- https://master.php.net/note/delete/74551/integrated
Del: useless -- https://master.php.net/note/delete/74551/useless
Del: bad code -- https://master.php.net/note/delete/74551/bad+code
Del: spam -- https://master.php.net/note/delete/74551/spam
Del: non-english -- https://master.php.net/note/delete/74551/non-english
Del: in docs -- https://master.php.net/note/delete/74551/in+docs
Del: other reasons-- https://master.php.net/note/delete/74551
Reject -- https://master.php.net/note/reject/74551
Search -- https://master.php.net/manage/user-notes.php