note 61876 deleted from features.file-upload by betz
| From: | betz@php.net | Date: | Tue, 14 Feb 2006 12:36:59 +0000 |
| Subject: | note 61876 deleted from features.file-upload by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-103685@lists.php.net to get a copy of this message | ||
Note Submitter: NeoNe
----
Hy I have some time out problem when I uploading some file more then 2mb in firefox and explorer
my script is not so big script but I folow it on example
<?php
$dir = 'uploads/';
$uploadfile = $dir . basename($_FILES['userfile']['name']);
if (is_uploaded_file ($_FILES['userfile']['tmp_name']))
{
if
(move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile))
{ // Move the file over.
echo 'Your file has been uploaded successfully!';
}
else
{ // Couldn't move the file over.
echo 'Your file could not be uploaded please try again.</p>';
}
}
?>
and here is html
<form enctype="multipart/form-data" action="upload.php"
method="POST">
<input type="hidden" name="MAX_FILE_SIZE"
value="30000000">
<b>Choose a file to upload:</b> <input name="userfile"
type="file"><br>
<input type="submit" value="Upload File">
</form>
I wondering how I can upload files like 40mb on server I realy preshiate if u can help!
Thanx NeoNe