| Server IP : 198.244.165.102 / Your IP : 216.73.216.218 [ Web Server : nginx/1.24.0 System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : colleary ( 1011) PHP Version : 8.3.23 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/egv/public_html/aim_sync/ |
Upload File : |
<?php
/* EGV */
$source_host = '86.41.12.8';
$source_user = 'remotesync';
$source_pass = 'r3mot3$$';
$source_database = 'tresql';
/* End config */
$conn_id = ftp_connect($source_host);
$login_result = ftp_login($conn_id, $source_user, $source_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;
}
ftp_pasv($conn_id, true);
$prod_folder = getcwd();
$target_picture = "../wp-content/uploads/products/Plants/SB/Lilium for pots 'orange Pixie' - 2 bulbs prepack.jpg";
$target_picture_wp = "https://www.egv.ie/wp-content/uploads/products/Plants/SB/Lilium for pots 'orange Pixie' - 2 bulbs prepack.jpg";
$source_picture = "Plants/SB/Lilium for pots 'orange Pixie' - 2 bulbs prepack.jpg";
$target_picture = str_replace("'","",$target_picture);
echo "Checking #1 - " . $target_picture . " | Source " . $source_picture . "|" . $prod_folder . "<br>";
if (ftp_get($conn_id, $target_picture, $source_picture, FTP_BINARY)) {
echo "Successfully written to $target_picture\n";
} else {
echo "There was a problem (2) " . $target_picture . " | " . $source_picture . "\n";
}
?>