I am trying to use the ftp_get function to download a file from an ftp site automatically with PHP. My problem is that I only know the first half of the filename. The first half is a certain string that i know, and the second half is some sort of number configuration that the provider of the file assigns. So basically, I am asking if there is a way to use wildcards when attempting to retrieve files with this function.
For example:
ftp_get($conn_id, $localfilename, "12345-*.xml", FTP_BINARY);
In this example, I know the "12345-" and the rest of it I will not know, except for the file extension of xml. Is this possible?