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'],$upl
oadfile))
{ // 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
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|