note 10731 added to fopen
| From: | Marinne at ilovechocolate dot com | Date: | Fri, 19 Jan 2001 07:42:36 +0000 |
| Subject: | note 10731 added to fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9962@lists.php.net to get a copy of this message | ||
Here is a fopen("http://...","r")
tip that costs me an hour:If the file you want to open via HTTP does not allow anonymous access,
fopen("http://...","r") will fail.
I tried to fopen("http://...","r")
a file on one of my internal servers that does not allow anonymous access and PHP always returnd an
"Error 0". If I change the server setting to allow anonymous access it works fine.
Note:It's a Windows2000/IIS 5 server.
http://www.php.net/manual/en/function.fopen.php