I've been trying out this function and while it connects okay, the error seems to occur in the file I'm trying to put on my hard drive...
Using searches and consequently Devsheds tutorial to get me started...
<?php
// connect to FTP server
$conn = ftp_connect("ftp.site.com");
// log in with username and password
ftp_login($conn, "username", "password");
// get remote system type
ftp_systype($conn);
// change directory to "public_html"
ftp_chdir($conn, "www.site.com/public_html");
// download file
ftp_get($conn, "download.php", "index.php", FTP_ASCII);
// close connection
ftp_quit($conn);
?>
(the www.site.com before public html is due to some strange system my host has)
I then get the error...
Warning: error opening download.php in /home/1030/username/www.site.com/public_html/ftp.php on line 11
Any help in how to sort this would be much appreciated.