okay, so I have knocked up the following.....
<?php
// this is in the same folder as this script
$source_file = "col1.txt";
//I want to upload this file to the other server...thusly..
$ftp_server = "...";
// set up a connection or die
$conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server");
ftp_login($conn_id, *, *);
//path to upload directory on other server...I want to load up the file above as col1_test.txt...permissions are set already..
$path = "/home/cust2/usr2043/html/col1_test.txt";
$upload = ftp_put($conn_id, $path, $source_file, FTP_BINARY);
if(!$upload)
{
echo "didnt upload";
}
else {
echo "Upload complete<p>";
}
ftp_quit ($conn_id);
?>
and I am getting the below error...
Warning: ftp_put(): Could not open: No such file or directory in /home2/tolseq/public_html/cleo/pt.php on line 16