cURL problems

Hi all

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


$filepath = 'http://www.siteA.com/export/PagesJaunes/PJ-feed.csv';
$fp = fopen($filepath, 'r'); //open as read a file
 
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'ftp://md186380:zQZ5uiNEZH@ftp.siteB.com/public/sites/PJ-feed.csv');
curl_setopt($ch, CURLOPT_UPLOAD, 1);
curl_setopt($ch, CURLOPT_INFILE, $fp);
curl_setopt($ch, CURLOPT_INFILESIZE, filesize($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