PHP 4.0 Bug #7918 Updated: fopen fails to open file of form http://....
| From: | venaas@php.net | Date: | Sun, 07 Jan 2001 19:33:57 +0000 |
| Subject: | PHP 4.0 Bug #7918 Updated: fopen fails to open file of form http://.... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43271@lists.php.net to get a copy of this message | ||
ID: 7918
Updated by: venaas
Reported By: david@buchan.org
Old-Status: Closed
Status: Feedback
Bug Type: Filesystem function related
Assigned To: venaas
Comments:
The reason might be that fopen() doesn't handle redirects. I hope
to add redirect support again though. To check if this is the reason,
check the contents of $http_response_header right after the fopen()
call and see if it contains a redirect.
Previous Comments:
---------------------------------------------------------------------------
[2000-12-30 19:51:08] sniper@php.net
No feedback. And this works for me.
--Jani
---------------------------------------------------------------------------
[2000-11-22 07:04:06] sniper@php.net
Please add complete (but shortest possible) script
to this report which does not work.
--Jani
---------------------------------------------------------------------------
[2000-11-21 23:38:12] david@buchan.org
[This is related to bug 7894 which was closed without statement of resolution. It looks to be the
same error].
In performing a local installation of Sourceforge 2.0 on Linux Redhat 7.0, the following error
occurs with the fopen statement of the form:
fopen("http://sourceforge/write_cache.php?sys_themeid=1&function=0","r";)
The file is not opened and subsequent use of the file handles confirm that.
If the url is typed directly into Netscape's Address box it works fine and the expected results
are returned.
Users on the Sourceforge offsite discussion group report everthing was fine until 4.03x was
installed.
I am using:
Apache 1.3.14
Php 4.0.3pl1 (complied as an apache module)
Linux Redhat 7.0
Mod_Perl
Mod_ssl
All configurations were out of the box following the basic install instructions.
php.ini was not modified.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7918