Date: 03/13/01
- Next message: Barry Mitchelson: "[PHP-DEV] Err : Invalid library"
- Previous message: andreas <email protected>: "[PHP-DEV] PHP 4.0 Bug #9708 Updated: double #defined V_RENAME, the second"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: aaron.webb <email protected>
Operating system: rh 6.1
PHP version: 4.0.4pl1
PHP Bug Type: Filesystem function related
Bug description: Unable to use @ in URL passwords with fopen()
I'm running 4.0.4pl1 on redhat 6.1. I've tried (raw and regular) urlencoding my ftp password to use with fopen, but if there's a @ in it it says 'bad file descriptor'.
I can open any file via ftp just fine, as long as there's no @ in the filename. The 'allow url fopen' (can't remember the exact name) is set to ON in my php.ini.
Here's my script:
<html>
<body>
<?
$pword = 'stuff <email protected>';
$server = "servername";
$filename = "filename";
$pword = urlencode($pword);
echo $filename = 'ftp://username:' . $pword . "@$servername/$filename";
$fd = fopen ($filename, "r");
echo $contents = fread ($fd, 100);
fclose ($fd);
?>
</body>
</html>
-- Edit Bug report at: http://bugs.php.net/?id=9727&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Barry Mitchelson: "[PHP-DEV] Err : Invalid library"
- Previous message: andreas <email protected>: "[PHP-DEV] PHP 4.0 Bug #9708 Updated: double #defined V_RENAME, the second"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

