#change to exact path
$remote = '/';
$c = curl_init("ftp://$username:$password@ftp.domain.com/$remote");
$fh = fopen($local, 'w') or die($php_errormsg);
curl_setopt($c, CURLOPT_FILE, $fh);
curl_exec($c);
curl_close($c);
Using CURL to do some ftp stuff
php October 3, 2008 July 21, 2008Tags: curl php
Leave a Reply