Bug #18456 Updated: fopen() doesn't open URLs that redirect (e.g. http://www.s.com/p.asp?w=asdf)
| From: | sesser@php.net | Date: | Sun, 21 Jul 2002 16:32:10 +0000 |
| Subject: | Bug #18456 Updated: fopen() doesn't open URLs that redirect (e.g. http://www.s.com/p.asp?w=asdf) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14732@lists.php.net to get a copy of this message | ||
ID: 18456
Updated by: sesser@php.net
Reported By: shlok@ript.net
-Status: Open
+Status: Bogus
Bug Type: *Directory/Filesystem functions
Operating System: Windows 2000
PHP Version: 4.2.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2002-07-21 12:25:49] shlok@ript.net
The URL in the summary was just an example. The real URL that I have in
mind is:
http://www.ordabok.is/index.asp?leitarord=car
It works fine if I type this URL in a browser. But when I execute the
following PHP code:
$fp = fopen("http://www.ordabok.is/index.asp?leitarord=car",
"r");
fclose($fp);
I get the following warnings:
Warning: php_network_getaddresses: gethostbyname failed in
c:\inetpub\wwwroot\test.php on line
Warning: fopen("http://www.ordabok.is/index.asp?leitarord=car",
"r") -
No such file or directory in c:\inetpub\wwwroot\test.php on line 3
Warning: fclose(): supplied argument is not a valid File-Handle
resource in c:\inetpub\wwwroot\test.php on line 4
I hope that someone can fix this problem.
Thanks.
Shlok
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18456&edit=1