Increase Wordpress Blog Loading Time
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.
- Open the php.ini file and search for “memory_limit“. By default the PHP allocates 8M i.e. 8 MB of script size but you can change it to 16M, 32M as per your requirement. But it is recommended to keep it upto 16M. Example: memory_limit = 16M
- PHP has a inbuild function ini_set which lets you to change the settings of the php.ini file through the php script. Example: ini_set(’memory_limit’,'16M’)
Random Posts
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
No comments yet.
Leave a comment