note 57640 added to function.file
| From: | contact at progonline dot com | Date: | Sun, 09 Oct 2005 21:52:47 +0000 |
| Subject: | note 57640 added to function.file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96762@lists.php.net to get a copy of this message | ||
I have easyPHP on my computer, which is behind a firewall(the one of my students network).
I tried to execute the following script :
<?
$handle = file_get_contents("http://www.progonline.com/");
?>
When executed, the script returns the following error:
Warning: file_get_contents(http://www.progonline.com/): failed to open stream: Bad file descriptor
in c:\program files\easyphp1-8\www\test.php on line 2
I do not understand this warning, since the adress is absolutely valid (it works when introduced in
any internet browser).
Can anyone help? Thank you.
----
Manual Page -- http://www.php.net/manual/en/function.file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57640
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57640&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57640&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57640&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57640&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57640&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57640&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57640&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57640&report=yes
Search -- http://master.php.net/manage/user-notes.php