Created
June 28, 2010 16:10
Revisions
-
hubgit revised this gist
Jul 30, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,5 +10,5 @@ function file_exists_ci($file) { if (strtolower($file) == $lowerfile) return $file; return FALSE; } -
hubgit created this gist
Jun 28, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ <?php function file_exists_ci($file) { if (file_exists($file)) return $file; $lowerfile = strtolower($file); foreach (glob(dirname($file) . '/*') as $file) if (strtolower($file) == $lowerfile) return $file; return false; }