I have to download a file by FTP, but I know just the prefix of the file, because the end of the name is generated by another system for me. With the function "mget", I can download, however I wish to do the same thing with PHP, but the function "ftp_get" isn't accepting * to get all the files in the directory. For example:
ftp> mget RPT_35302535*.*
ftp_get($Connection, $Local_Name, "RPT_35302535*.*", FTP_BINARY);
The function ftp_get needs the complete name and isn't accepting the * to get all the files.
How can I download a file like mget * with PHP?
Thanks!!