title: php move_uploaded_file not working when filename has spaces
body: <p>i am uploading a file to the server. everything works fine unless the uploaded file has a space in it. </p>
  
  <p>I tried to use: 
      str_replace(" ", "_", $_FILES['image']['name']);</p>
  
  <p>My code is </p>
  
  <pre><code> $image_name= str_replace(" ", "_", $_FILES['image']['name']);
                 $image_tmp_name = $_FILES['image']['tmp_name'];
                 $image=$_FILES['image'];
  
                $url = "http://jkshahclasses.com/push_images/$image_name";
                  if(move_uploaded_file($image_tmp_name,"../../push_images/$image_name"))
                  {
                      echo "file uploaded";
                  }
                  else
                  {
                      echo "error: file not uploaded";
                      }
  </code></pre>
  
  <p>Thanks in advance</p>