Hi all

Im trying to transfer a local file on SiteA to SiteB using FTP under cURL .... but cant seem to get it working


PHP Code:
$filepath 'http://www.siteA.com/export/PagesJaunes/PJ-feed.csv';
$fp fopen($filepath'r'); //open as read a file
 
$ch curl_init();
curl_setopt($chCURLOPT_URL'ftp://md186380:zQZ5uiNEZH@ftp.siteB.com/public/sites/PJ-feed.csv');
curl_setopt($chCURLOPT_UPLOAD1);
curl_setopt($chCURLOPT_INFILE$fp);
curl_setopt($chCURLOPT_INFILESIZEfilesize($filepath));
curl_exec ($ch);
curl_close ($ch); 
The script is running on siteA

ANy Ideas

PS because the site is hosted by a third party I cant use the PHP FTP library hence trying to use cURL