From:             bruny dot pitou at caramail dot com
Operating system: Windows NT
PHP version:      4.3.2
PHP Bug Type:     FTP related
Bug description:  Problem download a file in local disk

Description:
------------
I have a problem with ftp_get and ftp_put.
My server Apache has set up on Linux.
I must download a file in my local disk (Windows NT)
I have an error : 
      Warning: ftp_get(): error opening C:/fichier.txt
My code is :
if($connexion){
    if(ftp_login($connexion,$user,$pass)){
    $res=ftp_get($connexion,"C:/fichier.txt","fichier.txt",FTP_BINARY);
    
                                  Help me, please.
                                  Thanks.

Reproduce code:
---------------
if($connexion){
        if(ftp_login($connexion,$user,$pass)){
               
$res=ftp_get($connexion,"file:///C:/stock/listeaffaires.csv","listeaffaires.csv",FTP_BINARY);
                if($res){
                        echo "téléchargement réussi<br>";
                        }
                        else{
                        echo "téléchargement raté";
                        }
        }else{
        echo "login ou mot de passe mauvais";
        }
     }else{
        echo "probleme de connexion";
}

?>

Expected result:
----------------
Warning: ftp_get(): error opening file:///C:/stock/listeaffaires.csv in
/usr/local/www/socetem.fr/essai/connect.php on line 6
téléchargement raté

Actual result:
--------------
Warning: ftp_get(): error opening file:///C:/stock/listeaffaires.csv in
/usr/local/www/socetem.fr/essai/connect.php on line 6
téléchargement raté

-- 
Edit bug report at http://bugs.php.net/?id=24385&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24385&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24385&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24385&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24385&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24385&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24385&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24385&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24385&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24385&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24385&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24385&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24385&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24385&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24385&r=gnused

Reply via email to