note 10246 deleted from file_exists by zak
| From: | zak@php.net | Date: | Wed, 20 Dec 2000 17:14:38 +0000 |
| Subject: | note 10246 deleted from file_exists by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8965@lists.php.net to get a copy of this message | ||
Yep. This does not traverse include_path...
Here's a workaround:
function include_path_file_exists($filename)
{
$paths = explode(":", ini_get("include_path"));
$result = false;
while(list($key,$val) = each($paths))
{
$result = $result | file_exists($val . "/" . $filename);
}
return $result;
}
andrew