note 110848 deleted from function.stream-resolve-include-path by danbrown
| From: | danbrown@php.net | Date: | Thu, 17 Jan 2013 15:36:36 +0000 |
| Subject: | note 110848 deleted from function.stream-resolve-include-path by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193164@lists.php.net to get a copy of this message | ||
Note Submitter: ptrkchn at gmail dot com
----
function fileExists($file) {
if(function_exists('stream_resolve_inlcude_path'))
return stream_resolve_inlcude_path($file);
$include_path = explode(PATH_SEPARATOR, get_include_path());
foreach($include_path as $path)
if(file_exists($path.DS.$file))
return true;
return false;
}