note 111015 modified in function.file-exists by danbrown

From: Date: Thu, 17 Jan 2013 15:22:46 +0000
Subject: note 111015 modified in function.file-exists by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193139@lists.php.net to get a copy of this message
On Japanese Windows system, here is the other way to figure out the file existence to avoid SJIS 5C problem. <?php function sjis_file_exists($filename) { return exec("if exist \"$filename\" (echo 1) else (echo 0)"); } ?> --was-- On Japanese Windows system, here is the other way to figure out the file existence to avoid SJIS 5C problem. function sjis_file_exists($filename) { return exec("if exist \"$filename\" (echo 1) else (echo 0)"); } http://php.net/manual/en/function.file-exists.php

« previous php.notes (#193139) next »