title: move_uploaded_file was not working on server side
body: <p>I write my php and html code, it was not working while hosting on the server.</p>
  
  <pre><code>&lt;form class="form-horizontal style-form"   enctype="multipart/form-data" method="post"   action="insert.php"&gt;
  
                    &lt;div class="form-group"&gt;
                            &lt;label class="col-sm-2 col-sm-2 control-label"&gt; Name *&lt;/label&gt;
                            &lt;div class="col-sm-4"&gt;
                                &lt;input type="text" required="" class="form-control" id="sname" name="sname"/&gt;
                            &lt;/div&gt;
  
                              &lt;label class="col-sm-2 col-sm-2 control-label"&gt;Upload *&lt;/label&gt;
                            &lt;div class="col-sm-4"&gt;
                                &lt;input type="file" class="form-control" id="Filename" required="" name="file"/&gt;
                            &lt;/div&gt; 
                        &lt;/div&gt;  
                            &lt;div class="col-sm-8" &gt; &lt;/div&gt;
                            &lt;div class="col-sm-2"&gt;
                           &lt;input type="submit"  class="btn btn-theme" name="softsubmit" value="Submit"&gt;
  
                            &lt;/div&gt;
                           &lt;/form&gt;  
  </code></pre>
  
  <p>and my insert.php file is:</p>
  
  <pre><code>&lt;?php 
  if(isset($_POST['softsubmit'])) 
  { 
  $sname=$_POST['sname'];
  $file_name = $_FILES['file']['name']; 
  $file_size =$_FILES['file']['size']; 
  $file_tmp =$_FILES['file']['tmp_name']; 
  $file_type=$_FILES['file']['type']; 
  $tmp="uploads/".$file_name; 
  $ok = move_uploaded_file($file_tmp,$tmp);
  if($ok == true)
   echo 'success';
    else
     echo 'error';
    }
  </code></pre>
  
  <p>ERROR:</p>
  
  <blockquote>
    <p>"move_uploaded_file(): Unable to move '/tmp/phpkEr7JN' to
    '/home/novasoftco/public_html/adminuploads/TNEB Online Payment.zip'"</p>
  </blockquote>