Checking if file is on localhost or not, implent optional argument to file_exists() ?

From: Date: Wed, 18 Aug 2004 19:26:37 +0000
Subject: Checking if file is on localhost or not, implent optional argument to file_exists() ?
Groups: php.internals 
Request: Send a blank email to internals+get-12223@lists.php.net to get a copy of this message
Since PHP5 many/most filesystem functions can be used with "some" URL wrappers. That's good and all *but* now it's quite difficult to check if file is on localhost or not. It´s possible to use parse_url() and check if "scheme" is set for instance but I belive we should insert new optional argument to file_exists(), is_file() and is_dir() etc. example; bool file_exists ( string filename [, bool strict ] ) where strict is default to false but when true only check if filename exists on localhost. Agree? Or is there a simpler/better way of doing this? - Hannes

« previous php.internals (#12223) next »