Uploading files > 2MB Uploading files > 2MB
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Uploading files > 2MB

Started by The Grand Pooh-Bah, May 26, 2006, 07:49:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

The Grand Pooh-Bah

I understand that PHP is set by default to a maximum of 2MB for files to be uploaded.  Are there any negative (other than bandwidth usage) consequences for increasing this to 4MB?

If not does anyone here know where to make these changes within PHP.  I'm on a dedicated server so I have access.
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Joachim Müller

The memory assigned to PHP is being set in the server's php.ini file. The drawback is obvious: if there are multiple instances of script run simultaneously, the memory usage sums up. If more memory is being used than the server has, it will slow down (swapping) and eventually crash. I guess it's pretty safe to go to 4 MB (which is still a bit small for decent image resizing).
There are better places to ask for webserver setup than this board...