title: move_uploaded_file(): Unable to move
body: <pre class="lang-php prettyprint-override"><code>$image = addslashes(file_get_contents($_FILES['image']['tmp_name']));
  $image_name = addslashes($_FILES['image']['name']);
  $image_size = getimagesize($_FILES['image']['tmp_name']);
  
  move_uploaded_file($_FILES["image"]["tmp_name"], "/profile/img/" . $_FILES["image"]["name"]);
  $location = "img/" . $_FILES["image"]["name"];
  
  mysql_query("update  users set user_img = '$location' WHERE user_email = '$_SESSION[user]' ")or die(mysql_error());
  </code></pre>