I'm sure its possible... but it wouldnt' be very efficient or anything...
The script would have to upload the file to it's server, then upload to the FTP site... would take twice as long. Heres a simple FTP script though:
$ftp_ID = ftp_connect ("ftpserver.com");
$login = ftp_login ($ftp_ID, "username", "password");
if ((!$ftp_ID) or (!$login)) {
mail ("keithp@logosoftwear.com", "FROOGLE.GOOGLE.COM FAILURE", "FTP Connect Failed: " . date ("Ymd"), "From: Server <info@logosoftwear.com>");
exit;
} else {
$upload = ftp_put ($ftp_ID, "destinationfile.txt", "soucefile.txt", FTP_BINARY);
if (!$upload) {
mail ("keithp@logosoftwear.com", "FROOGLE.GOOGLE.COM FAILURE", "FTP Upload Failed: " . date ("Ymd"), "From: Server <info@logosoftwear.com>");
} else {
mail ("keithp@logosoftwear.com", "Froogle.Google.com Success", "FTP Upload SUCCESS: " . date ("Ymd"), "From: Server <info@logosoftwear.com>");
}
ftp_quit ($ftp_ID);
}