The code you showed does not call ftp_get. Pleas post more of your code without the errors.
This is how you normally do ftp put and get, which is what you need to write the files:
$ftpmode = FTP_ASCII;
$conn = ftp_connect($ftp_site) or die("Could not connect");
ftp_login($conn,$ftp_username,$ftp_password) or die("Bad login credentials for ". $ftp_site);
ftp_chdir($conn,$ftpdirectory) or die("could not change directory to ISNO");
// This is how you do the PUT:
if (ftp_put($conn,$remotefilename,$localfilename,$ftpmode)) {
echo 'File uploaded successfully';
} else {
echo 'There was a problem uploading file';
}
// This is how you do the GET:
if (ftp_get($conn,$localfilename,$remotefilename,$ftpmode)) {
echo 'File downloaded successfully';
} else {
echo 'There was a problem downloading file';
}
Fairly simple stuff if you read the manual. You will need ftp login credentials as well as the ftp server name or IP address.