Bug #16510 Updated: fopen to a URL containing spaces fails
| From: | wez@php.net | Date: | Tue, 09 Apr 2002 11:22:55 +0000 |
| Subject: | Bug #16510 Updated: fopen to a URL containing spaces fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4417@lists.php.net to get a copy of this message | ||
ID: 16510
Updated by: wez@php.net
Reported By: davidviner@puggle.freeserve.co.uk
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Windows NT
PHP Version: 4.1.1
Previous Comments:
------------------------------------------------------------------------
[2002-04-09 07:22:42] wez@php.net
Can you verify if this is still true for PHP 4.2RC2?
get it from: http://www.php.net/~derick
If it still has problems, are you in a position to
sniff the network packets to see what it going on?
------------------------------------------------------------------------
[2002-04-09 06:13:43] davidviner@puggle.freeserve.co.uk
Using fopen to access a remote file will fail if the URL path contains
spaces.
A server contains the following files:
/Test Dir/default.asp
/TestDir/default.asp
The following fopen will succeed:
$f = fopen ("http://server/TestDir/default.asp",
"r");
while this one will fail:
$f = fopen ("http://server/Test Dir/default.asp",
"r");
I have tried replacing them with "%20" and escaping the spaces "\ " but
neither succeed.
The above fails on both IIS and PWS.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16510&edit=1