Saturday, March 9, 2013

How do I increase PHP's resource limits?

Check/edit your php.ini file for the following settings:
; Maximum amount of memory a script may consume (8MB).
memory_limit = 256M

; Maximum size of POST data that PHP will accept.
post_max_size = 32M

; Maximum allowed size for uploaded files.
upload_max_filesize = 32M

No comments:

Post a Comment

About Me

My photo
I code. I figured I should start a blog that keeps track of the many questions and answers that are asked and answered along the way. The name of my blog is "One Q, One A". The name describes the format. When searching for an answer to a problem, I typically have to visit more than one site to get enough information to solve the issue at hand. I always end up on stackoverflow.com, quora.com, random blogs, etc before the answer is obtained. In my blog, each post will consist of one question and one answer. All the noise encountered along the way will be omitted.