note 57340 added to function.file-get-contents
| From: | petruzanautico at yahoo dot com dot ar | Date: | Fri, 30 Sep 2005 19:55:05 +0000 |
| Subject: | note 57340 added to function.file-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96091@lists.php.net to get a copy of this message | ||
file_get_contents() will fail to retrieve the output of a PHP (or any other CGI script) with
parameters in the URL.
Example:
print file_get_contents("http://server.com/test.php?id=9");
will output the following warning:
Warning: file_get_contents(http://server.com/test.php?id=9): failed to open stream: Invalid argument
in...
----
Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57340
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57340&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57340&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57340&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57340&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57340&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57340&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57340&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57340&report=yes
Search -- http://master.php.net/manage/user-notes.php