Hi list,
I've a strange problem with the ftp_get function.
I want to download a file from a server to my local station.
the connection works fine, the login too but the ftp_get return a error .
Connected to 192.168.0.254
Login ok
Warning: ftp_get() [function.ftp-get]: Error opening c:\temp in C:\Inetpub\wwwroot\APLUS\TMP3l34e8a8v3.php on line 34
My code is :
...
if(@ftp_login($ftp,"USER", "passwd")){
echo "Login ok<br>";
ftp_pasv($ftp, true);
$localfile = "c:\temp";
$remotefile = "test";
ftp_get($ftp,$localfile,$remotefile,FTP_BINARY) ;
....