Ok, maybe i'm not understanding things correctly. What I'm trying to do is download a file from an ftp site. I've quoted the part of the script below. Everything is set correctly for the connection. $localfile - is what I want to save the downloaded file as. $content is the filename on the remote server. What I don't understand is the error. newfile.104 doesn't exist yet on my local drive since I haven't downloaded anything yet. What am I doing wrong?
$localfile = "newfile.104";
$content = "114_11522_1022_rpt.103";
$result = ftp_get($conn_id, $localfile, $content, FTP_BINARY);
Warning: ftp_get(): Error opening newfile.104 in /Library/Apache2/htdocs/ftp.php on line 11