problem in file upload
<p>If the file name is <code>fin's xyz.mp3</code> then it is not uploading because of this fin(')s  single quote. How should I use <code>move_uploaded_file($tmp,$dest)</code> in PHP?</p>

<p>Example:</p>

<pre><code>$name1=$_FILES['FileName']['name'];
$tmp1=$_FILES['FileName']['tmp_name'];
$target = "../music_files/";
$up=uniqid().$name1;
$target = $target.$up;
move_uploaded_file($tmp1,$target);
</code></pre>

<p>HTML:</p>

<pre><code>&lt;form action="" method="post" enctype="multipart/form-data" name="loginfrm" onsubmit="return CheckLogin();"&gt;
    &lt;input type="file" id="FileName" name="FileName" class="text-box" /&gt;
    &lt;input name="Submit" type="submit" class="button" value="Save" /&gt;
&lt;/form&gt;
</code></pre>
