Increase Upload FileSize Limit in PHP

In PHP every script you executes is allocated certain memory, so now if there is a case that your script might require memory(during file upload) which exceeds the php script memory limit then the PHP compiler will be unable to process the page further as it does not have enough memory to allocate. But do not worry you can also increase the memory limit for the script from php.ini. This article will guide you on how to increase the php script memory limit.





In PHP there are two ways you can increase the memory limit.

Similar Posts

Custom Search

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

This post does not mention how to change the php upload file size limit.

Hi Michael, In PHP whenever you upload an file the PHP engine will check whether the upload file size and the script size is within the limit of memory_limit set in php.ini. By changing the memory_limit you are indirectly increasing the memory size the php page which takes care of the files which are getting uploaded.

Wants more topics on php5

Increase Upload FileSize Limit in PHP

Look for this variable in php.ini and update accordingly.

upload_max_filesize = 10M

File upload limit depends on upload_max_filesize and post_max_size.

Leave a comment

(required)

(required)