note 10247 modified in file_exists by zak

From: Date: Wed, 20 Dec 2000 17:15:22 +0000
Subject: note 10247 modified in file_exists by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-8966@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 http://www.php.net/manual/function.file-exists.php

« previous php.notes (#8966) next »