note 14476 added to function.file.php
| From: | DanRichter dot at dot programmer dot dot dot net at php2 dot chek dot com | Date: | Wed, 01 Aug 2001 17:02:08 +0000 |
| Subject: | note 14476 added to function.file.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16179@lists.php.net to get a copy of this message | ||
<p>When reading files over the Web (i.e., when the filename is a URL), this function gives
some funny error messages which confused me at first.</p><p>Warning: [URL] - bad file
descriptor<br>means the host doesn't exist or didn't accept the
connection.</p><p>Warning: [URL] - Transport endpoint is not connected<br>means
the connection was opened but server's response was not legitimate (e.g., server closed
connection without sending data).</p><p>Warning: [URL] - Success<br>means the
server responded something like "forbidden" or "page not found" (403).</p>
http://www.php.net/manual/en/function.file.php