|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-29 10:51 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 05:00:02 2025 UTC |
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?