Re: Re: file_exists()

From: Date: Sun, 23 Oct 2005 00:12:02 +0000
Subject: Re: Re: file_exists()
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-224478@lists.php.net to get a copy of this message
Good idea yes. But apparantly Windows couldn't do it either. :-( function file_exists_windows($path) { exec('dir ' . $path, $output, $return_status); return $return_status == 0 ? true : false; // Windows dir will return 0 when something was found } It works with "normal" ascii file names, but other than that it's a no. Makes you wonder what the problem is here, maybe exec() not supporting unicode either.

« previous php.general (#224478) next »