ID: 25619
Updated by: [email]rasmus@php.net[/email]
Reported By: info at kktcbul dot com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: windows xp
PHP Version: 4.3.1
New Comment:

I am pretty sure this was fixed. Try the latest version.


Previous Comments:
------------------------------------------------------------------------

[2003-09-21 10:42:46] info at kktcbul dot com

Description:
------------
fopen function can't open redirected websites. For example, if a
website, written in asp, redirect to another page using
"response.redirect(blahblah.asp)", fopen can't open the redirected
page.

"http://www.ntvmsnbc.com/news/235069.asp"
redirects to
"http://www.ntvmsnbc.com/news/create_p1.asp?URL=www.ntvmsnbc.com/news/235069.asp"

but fopen can't open second address when i write first address. And
gives this warning message

Warning: fopen([url]http://www.ntvmsnbc.com/news/235069.asp[/url])
[function.fopen]: failed to create stream: Bad file descriptor in
C:\apache\Apache2\htdocs\test\wordcount.php on line 2

Reproduce code:
---------------
fopen ("http://www.ntvmsnbc.com/news/235069.asp","r");

Actual result:
--------------
Warning: fopen([url]http://www.ntvmsnbc.com/news/235069.asp[/url])
[function.fopen]: failed to create stream: Bad file descriptor in
C:\apache\Apache2\htdocs\test\wordcount.php on line


------------------------------------------------------------------------


--
Edit this bug report at [url]http://bugs.php.net/?id=25619&edit=1[/url]