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.

Reply via email to