tags:

views:

56

answers:

4

Is it poosible to upload 100 MB file using PHP? If so, what are the changes are need to be done in the configuration file?

Sri

+2  A: 

In your php.ini adjust the value of:

file_uploads = On
upload_max_filesize = 100M //needs to be in {x}M format

And allow larger post size:

post_max_size = 100M
The MYYN
+6  A: 

The following options are relevant:

and possibly

Pekka
+1 for speed - I was about to post almost the same answer xD
Álvaro G. Vicario
+1 Snap (8 more to go..)
RobertPitt
A: 

You just need to change the timeout of the server and the max file size in the php.ini file.

http://blog.jc21.com/2007-05-03/change-the-maximum-upload-size-with-php/

EDIT: You may not need to change the timeout of the server as that really would depend on which server you are running things on.

spinon
Upload time does not count toward the execution time.
Pekka
@Pekka yeah I was just thinking about that after I wrote it and that is why I added the edit.
spinon
+1  A: 

To allow for larger uploads with PHP you must change a few settings in the php.ini file (upload_max_filesize, max_input_time, memory_limit, max_execution_time, post_max_size). You can find your php.ini file under you PHP installation directory, and more information about the required settings here.

Torstein
Thanks for reminding me of `max_input_time`, +1. But `max_execution_time` and `memory_limit` don't really apply - not if the uploaded file is merely moved to another location.
Pekka