Helpful Information
 
 
Category: FTP Help
Error using ftp_get

I would like to make an download via FTP. The connection works correct and I find the source file on the server. But i got
an error concerning the destination directory of the client computer (the directory exists).

Warning: error opening C:\Temp\Main.php in /home/...

I tried different versions of the scripts like

$download = ftp_get($conn_id, "C:\\Temp\\Main.php", "/home/.../Main.php", FTP_ASCII);
$download = ftp_get($conn_id, "C:/Temp/Main.php", "/home/.../Main.php", FTP_ASCII);

with the same error.
The destination system is Windows 2000. So I'am not shure if it is a matter of the slashes or a matter of the rights
on the client computer?
Has someone an idea?

does c:\temp exists ??? just making sure.

u r running script on local machine's webserver right ?

does webserver has enough persmission to create file in c:\temp ??

check that out.

jd

I would like to make an download via FTP. The connection works correct and I find the source file on the server. But i got
an error concerning the destination directory of the client computer (the directory exists).

Warning: error opening C:\Temp\Main.php in /home/...

I tried different versions of the scripts like

$download = ftp_get($conn_id, "C:\\Temp\\Main.php", "/home/.../Main.php", FTP_ASCII);
$download = ftp_get($conn_id, "C:/Temp/Main.php", "/home/.../Main.php", FTP_ASCII);

with the same error.
The destination system is Windows 2000. So I'am not shure if it is a matter of the slashes or a matter of the rights
on the client computer?
Has someone an idea?



did yuo get this???i too have the same problem..

holy hell, you do realize how old this thread is right?










privacy (GDPR)