FTP + CURL

function UploadFTP($ftpLogin, $ftpPass, $ftpAddr, $ftpPath, $ftpFile){
	$remoteurl = "ftp://${ftpLogin}:${ftpPass}@${ftpAddr}${ftpPath}/${ftpFile}";
	$ch = curl_init();
	$fp = fopen($ftpFile, "rb");
		curl_setopt($ch, CURLOPT_URL, $remoteurl);
		curl_setopt($ch, CURLOPT_UPLOAD, 1);
		curl_setopt($ch, CURLOPT_INFILE, $fp);
		curl_setopt($ch, CURLOPT_INFILESIZE, filesize($ftpFile));
			$error = curl_exec($ch);
		curl_close($ch);
	return $error;
}