Open lsv opened 9 years ago
Found the problem, its because the PDF file was saved with capital letters.
And its hosted on a microsoft server, thats why the preg_match says the file as not found, but the read function reads direct from the FTP server (PHP ftp functions) and therefor it could read the file, but not "get" the file.
Maybe this should be mentioned in the documentation?
exists doesn't exactly check for the existence of the file, instead it fetches the directory listing and looks for the filename in there. Apparently some ftp servers do not provide all files in a directory listing with a huge amount of files. ftp_rawlist($conn, $filename) returns the filename, ftp_rawlist($conn, $prefixOfFilename) does not.
The file (when I use the read, gets saved nicely in my invoice_local) and the content is correct But why does the has, exists and get gives me false/exception ?
I also tried add the 152 directory to directory to the FTP configuration, but still the same.