make php file insensitive code example
Example: php open file capital letters or not
$result = current(preg_grep("/".preg_quote($filename)."/i", glob("$path/*")));
$result = current(preg_grep("/".preg_quote($filename)."/i", glob("$path/*")));