note 11035 deleted from function.file-exists by jimw

From: Date: Wed, 02 Jan 2002 01:01:14 +0000
Subject: note 11035 deleted from function.file-exists by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24076@lists.php.net to get a copy of this message
Under Windows, include paths are specified this way : "c:\path1\;c:\path2" So, you should go this way under Windows : 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; } There may be a way to do a cross platform script, but I didn't figured out how to. Guillaume Louel

« previous php.notes (#24076) next »