Help! uploading big files with PHP

Help! uploading big files with PHP

Posted by: ezbackgrounds
Posted on: 2007-04-11 19:16:00

I am trying to upload a 9.5M file through a PHP script interface. It seems like the max size for file uploads in PHP is 8M by default.

Is there anyway I can change this? I believe the variable upload_max_filesize in the php.ini file can be set but can I change the php.ini script?

If so, how would I do that? Can I just make a copy to my directory where the script is?...and if that works, hope that the main one doesn't change...?

Thanks!


Re: Help! uploading big files with PHP

Posted by: rlparker
Posted on: 2007-04-11 19:39:00

(sigh...) Probably the single most asked, and answered, question in these forums...

http://wiki.dreamhost.com/PHP.ini
http://wiki.dreamhost.com/Custom_PHP.ini

...and more...the search function of either the forums, or the wiki will help you find them.

--rlparker

Re: Help! uploading big files with PHP

Posted by: wholly
Posted on: 2007-04-12 19:57:00

The easiest way is to STOP using php for uploads. But everyone wants that.

Can we convince DH to do something like the flashplayer for uploads?

Wholly - Use promo code WhollyMindless for full 97$ credit. Let me know if you want something else!

Re: Help! uploading big files with PHP

Posted by: harvey115
Posted on: 2007-04-13 08:23:00

there is a script called modpowupload that uses php and generates a flash movie to upload files and you can get it for free if you don't remove their advert, here is the link to them (http://www.element-it.com/MultiPowUpload.aspx).

Hope it help, but the problem may still exist as it uses php to determine the size, type and upload dir etc.

Re: Help! uploading big files with PHP

Posted by: BUGabundo
Posted on: 2007-04-13 10:39:00

why not just use DH webftp?

there should be a module/plugin so that users could enable anonymous access for some folders where web users could user webftp to upload.
someone should sugest that one their development site

Re: Help! uploading big files with PHP

Posted by: Mousee
Posted on: 2007-04-13 11:18:00

DH's webftp uses PHP as well, and is thus limited by the same amount of memory (7-9meg).

Re: Help! uploading big files with PHP

Posted by: BUGabundo
Posted on: 2007-04-13 11:33:00

you are right. my bad

Tags: file uploadsini filechange thanksmax sizephp scriptuploading