How to increase Default Upload Limit of PHP ?
Posted by: vibes992000 (---.180.67.140.bol.net.in)
Date: September 21, 2008 02:14PM

Dear Developers,

Can anyone tell me from where I can change the default configuration of PHP to increase the maximum file upload limit.

If I'm not wrong then by Default its 2 M ???

Thanks in advance

Vibs

Options: ReplyQuote
Re: How to increase Default Upload Limit of PHP ?
Posted by: yfastud (Moderator)
Date: September 22, 2008 05:02AM

Try these different settings in C:\wamp\bin\apache\apache2.2.8\bin\php.ini

Find:
post_max_size = 8M
upload_max_filesize = 2M
max_execution_time = 30
max_input_time = 60
memory_limit = 8M

Change to:
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M

Then restart wamp to take effect

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: How to increase Default Upload Limit of PHP ?
Posted by: vibes992000 (---.180.58.95.bol.net.in)
Date: September 25, 2008 04:16AM

Thanks for solving my query. However I want to ask that whats the significance specially mentioning values like 750 M Max Upload File Size or 5000 as MAX Execution time. Are these just a guesses or there is some theory behind the Maximum Theoretical Limit of PHP ???? I'm using PHP 5.2.4

Options: ReplyQuote
Re: How to increase Default Upload Limit of PHP ?
Posted by: yfastud (Moderator)
Date: September 26, 2008 06:08AM

it's not the guess, it has formula; you can check php website for more info ;-)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: How to increase Default Upload Limit of PHP ?
Posted by: vibes992000 (---.180.108.120.bol.net.in)
Date: September 26, 2008 08:13PM

yfastud Wrote:
-------------------------------------------------------
> it's not the guess, it has formula; you can check
> php website for more info ;-)

I guess that you are right cuz when I increased the limit from 750 M to 1000 M then one of scripts like phpbb3 started behaving strangely and i wasn't even able to do some actions like login even in my own admin account ! though some scripts were behaving normally but most of them went pretty wired and when I again configured the settings that you have mentioned then everything went fine again like nothing ever happened ... winking smiley ;-)

I guess you are right smiling smiley

Vibs

Options: ReplyQuote


Sorry, only registered users may post in this forum.