AnsweredAssumed Answered

How to FTP a file from a remote server in a scheduler

Question asked by John Boyes on Jul 17, 2017

Anyone know how to read a file from a remote FTP server and load that data into Sugar via a Scheduler?


I am unable to use 


$streamContext = stream_context_create(array('ftp' => array('overwrite' => true));

$fileHandle = fopen($url, "w", 0, $streamContext);


because fopen is blacklisted and I am unable to use


$result = ftp_get($connectionId, "php://output", $file, FTP_BINARY);
$data = ob_get_contents();


because ob_start is blacklisted.