I use the PHP function filemtime to get the last modification time with PHP 5.3. This functions works very well but it seems to have some problems when the filenames have special characters (for example umlauts).
If I run it on a filename with umlauts
$stat = filemtime('C:/pictures/München.JPG');
then I get the output:
Warning: filemtime() [function.filemtime]: stat failed for C:/pictures/München.JPG
If I rename the file from "München.JPG" to "Muenchen.JPG" and do the same thing again:
$stat = filemtime('C:/pictures/Muenchen.JPG');
everything works fine!
My PHP file is saved as UTF-8 without BOM and I also tried:
clearstatcache();
$stat = filemtime(utf8_encode('C:/pictures/München.JPG'));
but it has not helped.