Working with rename function in PHP
<p>There is a file within the directory and I am trying to use rename( arg1, arg2 ) to rename the arg1 file.  </p>

<p>However, the arg1 file contains Asian letters and I get the message that the file is not available.</p>

<p>how can I solve this issue</p>

<p>thanks</p>

<pre><code>    $elements = scandir($dir);


foreach ($elements as $key =&gt; $value) 
{

    rename("./$value", "$newname");

}
</code></pre>
