In my PHP script, I use the function md5_file()to return the md5 key for each parsed file.
However, when a file has an accent in the file name, the function md5_file()cannot read the file.
//filename: Flash_Conquête_Galactic.txt
Warning: md5_file(.....): failed to open stream: No such file or directory in
I tried to use a function iconv()or function utf8_encode(), but both results had absolutely no result.
Is there a way to fix this problem without changing the file name?
source
share