I already read it so many questions and answers about it but I can\'t still solve my problem...
I\'m trying to create a function that deletes all the files with \"xm
For me the filename involved was appended with a querystring, which this function didn't like.
$path = 'path/to/my/file.js?v=2'
Solution was to chop that off first:
$path = preg_replace('/\?v=[\d]+$/', '', $path); $fileTime = filemtime($path);