Hi, I am writing a script to read all the file inside a directory and display the file name on the page. Below is the script:
<?php
if ($handle = opendir('C:\webroot\ckk\ckk\code')) {
while (false !== ($file = readdir($handle))) {
echo "$file<br>";
}
closedir($handle);
}
?>
All the file that named with english can display successful except japanese named file. It will show ?????.txt.
Anyone know how to solved the problem??