Problems with file upload
<p>follwoing is my scirpt to upload files on my online server. When i use it on a local server then it works fine but when i use to on the online server then it doesnot work and after uploading the 100% file give then notification of file not being moved. The folder's permission is also being set to '777' kindly let me know how can i fix this issue. It only happens when the size of the file is big like more than 5mb</p>

<pre><code>if ((isset($_POST["MM_insert"])) &amp;&amp; ($_POST["MM_insert"] == "form1")) {
$folder = "pak/".$_FILES['filename']['name'];
 if (move_uploaded_file($_FILES['filename']['tmp_name'], $folder)) {
  $insertSQL = sprintf("INSERT INTO sectiona (`Date`, Subject, Title, Link) VALUES (%s, %s, %s, %s)",
                       GetSQLValueString($_POST['Date'], "text"),
                       GetSQLValueString($_POST['Subject'], "text"),
                       GetSQLValueString($_POST['Title'], "text"),
                       GetSQLValueString($folder, "text"));

  mysql_select_db($database_hammad, $hammad);
  $Result1 = mysql_query($insertSQL, $hammad) or die(mysql_error());       
  Echo "File uploaded";
    } else {
         Echo "file not moved to destination folder. Check permissions";
    };



  $insertGoTo = "uploaded.php";
    header(sprintf("Location: %s", $insertGoTo));
}
</code></pre>
