// DN 28/04/06: not used (included in the tradedoubler reports)
$ftp_server = "ftpperso.free.fr";
$ftp_user = "datchan";
$ftp_pass = "bebc0210";
$file = "files/temp.txt";
$connection_string = "";
$conn_id = ftp_connect($ftp_server);
if (ftp_login($conn_id, $ftp_user, $ftp_pass)) {
// turn passive mode on
ftp_pasv($conn_id, true);
$connection_string .= "
-> Connection to the server: OK\n";
if (ftp_get($conn_id, $new_rs_file_name, $rs_file, FTP_BINARY)) {
$connection_string .= "
-> The file ".basename($new_rs_file_name)." has been uploaded successfully.\n";
} else {
$connection_string .= "
-> Operation failed (FTP Get).\n";
}
} else {
$connection_string .= "
-> Connection to the server: Failed (ftp_login)\n";
}
ftp_close($conn_id);
echo $connection_string;
?>