Bug #16510 Updated: fopen to a URL containing spaces fails

From: Date: Thu, 11 Jul 2002 03:45:32 +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-13812@lists.php.net to get a copy of this message
ID: 16510 Updated by: sniper@php.net Reported By: davidviner@puggle.freeserve.co.uk -Status: Open +Status: Closed Bug Type: Filesystem function related Operating System: Windows NT PHP Version: 4.1.1 New Comment: I test this with PHP 4.3.0-dev (CVS) and using %20 works. Please try this snapshot: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-04-09 10:26:56] davidviner@puggle.freeserve.co.uk The same problem occurs on 4.2RC2. However, I do not have access to (or am allowed to use) any network sniffers. ------------------------------------------------------------------------ [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

« previous php.bugs (#13812) next »