note 14475 modified in function.readfile by derick
| From: | derick@php.net | Date: | Wed, 02 Jan 2002 11:28:21 +0000 |
| Subject: | note 14475 modified in function.readfile by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24218@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 means the host doesn't exist or didn't accept the
connection.</p><p>Warning: [URL] - Transport endpoint is not connected 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 means the server responded
something like "forbidden" or "page not found" (403).</p>
--was--
<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.readfile.php