Here is the error that I am getting:
Warning: ftp_put: PORT command successful. in /home/www/picavue/email/hh.php3 on line 27
Here is the code (without the password)
$filename = "tempHH.txt";
$file = "huntervtours.txt";
$fp = fopen($filename,"r");
$ftp_path = "/home/ftp/incoming/hunterrealty";
$user = "tem";
$password= "";
$ftpserver = "ftp.traderonline.com";
$conn_id = ftp_connect($ftpserver);
$login_result = ftp_login($conn_id, $user, $password);
if ((!$conn_id) || (!$login_result)) {
echo "Ftp connection has failed to harmonhomes.com!<br>";
die;
} else {
echo "Ftp connection to harmonhomes.com successful!<br>";
}
ftp_chdir($conn_id, $ftp_path);
$current = ftp_pwd($conn_id);
echo "$current";
$upload = ftp_fput($conn_id, "./huntervtours.txt", $fp, FTP_ASCII);
if ($upload == TRUE){
echo "Upload Successful";
$hhupload = 'good';
}else{
echo "Upload Failed";
$hhupload = 'bad';
}
Can anyone help me out with why that Error is coming up????
thanks,
Paul