title: php file upload doesn't work on live server
body: <p>Hey guys I'm following these tutorials on php image upload where user signs up creates an album and can upload images into a specific album.</p>
  
  <p>file structure would be folder will be created in uploads and uploads/thumbs with user's id and all images from that user will be stored in there.</p>
  
  <p>problem is my code works perfect on local server but on live server details get set to the database fine but no upload happens and no error returns...</p>
  
  <p>file permissions are 744 755 in code and on the actual folders on server. Is there anything that comes to mind that I could try?</p>
  
  <pre><code>   function upload_image($image_temp, $image_ext, $album_id) {
      $album_id = (int)$album_id;
  
      mysql_query("INSERT INTO `images` VALUES ('', '".$_SESSION['user_id']."', '$album_id', UNIX_TIMESTAMP(), '$image_ext')");
  
      $image_id = mysql_insert_id();
      $image_file = $image_id.'.'.$image_ext;
      move_uploaded_file($image_temp, 'uploads/'.$album_id.'/'.$image_file);
      move_uploaded_file($_FILES["file"]["tmp_name"],"images/". $_FILES["file"]["name"]);
  
      Thumbnail('uploads/'.$album_id.'/', $image_file, 'uploads/thumbs/'.$album_id.'/');
  }
  </code></pre>