Php file is not uploading to folder
<p>I've a html upload form. It's working in my Localhost. But It's not working on live sever. It's insert the information to db but not uploading the file to folder called <strong>"photos"</strong>. </p>

<p><strong>Php code:</strong></p>

<pre><code>$upload_path = "photos/";
$upload = mysql_query("INSERT INTO photos (photo_cap, photo_name, photo, date) 
VALUES('$title','$filenameuniq', '$file', '$uploadate')");

        if($upload)
        {                       
            if(!empty($file))
            {
                if(!move_uploaded_file($_FILES['file']['tmp_name'], $upload_path . $filenameuniq))
                {
                echo '&lt;pre&gt;Your file was not uploaded please try again here are your debug informations:'.print_r($_FILES) .'&lt;/pre&gt;';                   
                }                   
            }//// upload to folder  

            echo "&lt;font color=green&gt;Successfully Updated.&lt;/font&gt;";
            header("Refresh:2; url=allphotos.php");
            exit(); 
        }
</code></pre>

<p><strong>Debug:</strong> </p>

<pre><code>Array ( [file] =&gt; Array ( [name] =&gt; Blue hills.jpg [type] =&gt; image/jpeg [tmp_name] =&gt; 
C:\Windows\Temp\php95FB.tmp [error] =&gt; 0 [size] =&gt; 28521 ) )

Your file was not uploaded please try again here are your debug informations:1
</code></pre>

<p>Why it's not uploading to <strong>"photos"</strong> folder ? On server how it's show  C:\Windows ?</p>
