Note: this function has been replaced by the new ar\connect\ftp library.
(string) getFileFromFTP($url, $fileName)
Arguments
(string) | $url | Full URL to the ftp server where the file has to be retrieved from. |
(string) | $fileName | Name of the file to get. |
getFileFromFTP()
returns the requested file as a string.
Example
<pinp>
load("mod_util.php");
echo util::getFileFromFTP(
"ftp://login:password@ftp.example.com/path/to/something/",
"file.pdf"
);
</pinp>