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

 

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

 

because ob_start is blacklisted.

Outcomes