note 10247 deleted from function.file-exists by jimw

From: Date: Wed, 02 Jan 2002 01:01:11 +0000
Subject: note 10247 deleted from function.file-exists by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24075@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( (!($result)) && (list($key,$val) = each($paths)) ) { $result = file_exists($val . "/" . $filename); } return $result; } andrew

« previous php.notes (#24075) next »