Bug #12965: fopen() don't open URL files
| From: | ronaldo at inbox dot lv | Date: | Sun, 26 Aug 2001 14:45:24 +0000 |
| Subject: | Bug #12965: fopen() don't open URL files | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-64348@lists.php.net to get a copy of this message | ||
From: ronaldo@inbox.lv
Operating system: Windows2000
PHP version: 4.0.6
PHP Bug Type: Filesystem function related
Bug description: fopen() don't open URL files
I'm using PhP 4.0.6 with Apache 1.3 and the
problem is opening remote files with fopen("http://...");
The following code:
>$fp = fopen("http://www.php.net", "r") or
>die("OPEN");
>while (! feof($fp))
>{
> fread($fp, 1024) or die("READ");
>}
>fclose($fp) or die("CLOSE");
Produced the following output:
>Warning: php_hostconnect: connect failed in filename.php..
>
>Warning: fopen("http://www.php.net","r") -
>Bad file
>descriptor in filename.php..
I tried to use fsockopen() with my IE proxy and port settings - it was
successful. Maybe the problem is in Apache configuration, but I just can't
figure that out!
If you can help, please, send to my email: ronaldo@inbox.lv
Kind regards
--
Edit bug report at: http://bugs.php.net/?id=12965&edit=1