actully im having a problem of uploading heavy files via php. i can upload only files of 2 MB.
i saw some help about Uploading and made some changes in "php.ini" but still getting the same problem. how can i fix it?
the code goes here.
Form.Html
Upload.phpCode:<form enctype="multipart/form-data" action="upload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="6582272" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
Code:<?php
$uploaddir = 'uploads/';
$uploadfile = $uploaddir . $_FILES['userfile']['name'];
print "<pre>";
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
print "File is valid, and was successfully uploaded. ";
print "Here's some more debugging info:\n";
print_r($_FILES);
} else {
print "Possible file upload attack! Here's some debugging info:\n";
print_r($_FILES);
}
print "</pre>";
?>
