ID:               24385
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bruny dot pitou at caramail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         FTP related
 Operating System: Windows NT
 PHP Version:      4.3.2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Use C:/stock/listeaffaires.csv and not
file:///C:/stock/listeaffaires.csv.


Previous Comments:
------------------------------------------------------------------------

[2003-06-29 09:26:21] bruny dot pitou at caramail dot com

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 this bug report at http://bugs.php.net/?id=24385&edit=1

Reply via email to