Ok ftp sound good solution, but now I have a problem:
I conncect to server 1 from server 2:
$conn_id = ftp_connect($ftp_server2);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// check connection
if ((!$conn_id) || (!$login_result)) {
echo "FTP connection has failed!";
echo "Attempted to connect to $ftp_server for user $ftp_user_name";
exit;
} else {
echo "Connected to $ftp_server, for user $ftp_user_name";
}
ftp_chdir ($conn_id,"www/images/g");
now I want to change the directory on server 1 - how can I do it?
Thanks,
Assaf