note 110848 added to function.stream-resolve-include-path
| From: | ptrkchn at gmail dot com | Date: | Fri, 14 Dec 2012 14:29:16 +0000 |
| Subject: | note 110848 added to function.stream-resolve-include-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192530@lists.php.net to get a copy of this message | ||
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;
}
----
Server IP: 46.17.113.3
Probable Submitter: 81.219.114.120
----
Manual Page -- http://php.net/manual/en/function.stream-resolve-include-path.php
Edit -- https://master.php.net/note/edit/110848
Del: integrated -- https://master.php.net/note/delete/110848/integrated
Del: useless -- https://master.php.net/note/delete/110848/useless
Del: bad code -- https://master.php.net/note/delete/110848/bad+code
Del: spam -- https://master.php.net/note/delete/110848/spam
Del: non-english -- https://master.php.net/note/delete/110848/non-english
Del: in docs -- https://master.php.net/note/delete/110848/in+docs
Del: other reasons-- https://master.php.net/note/delete/110848
Reject -- https://master.php.net/note/reject/110848
Search -- https://master.php.net/manage/user-notes.php