note 111015 added to function.file-exists
| From: | junya | Date: | Sun, 06 Jan 2013 12:11:20 +0000 |
| Subject: | note 111015 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192775@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.
function sjis_file_exists($filename)
{
return exec("if exist \"$filename\" (echo 1) else (echo 0)");
}
----
Server IP: 91.199.167.223
Probable Submitter: 212.64.80.10
----
Manual Page -- http://php.net/manual/en/function.file-exists.php
Edit -- https://master.php.net/note/edit/111015
Del: integrated -- https://master.php.net/note/delete/111015/integrated
Del: useless -- https://master.php.net/note/delete/111015/useless
Del: bad code -- https://master.php.net/note/delete/111015/bad+code
Del: spam -- https://master.php.net/note/delete/111015/spam
Del: non-english -- https://master.php.net/note/delete/111015/non-english
Del: in docs -- https://master.php.net/note/delete/111015/in+docs
Del: other reasons-- https://master.php.net/note/delete/111015
Reject -- https://master.php.net/note/reject/111015
Search -- https://master.php.net/manage/user-notes.php