note 10247 added to file_exists

From: Date: Wed, 20 Dec 2000 17:08:29 +0000
Subject: note 10247 added to file_exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-8962@lists.php.net to get a copy of this message
better still: 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; } (sorry for the poor layout -- yeah, trim this) andrew http://www.php.net/manual/function.file-exists.php

« previous php.notes (#8962) next »