How to increase my PHP Memory Limit?

Status
Not open for further replies.
3 comments
1. Navigate to php.ini location in your webserver:

And find "memory_limit" and change the value to higher as in the below one

PHP:
memory_limit = 64M
If the above code is not there is php.ini then add it
Restart your webserver

2. Add this code to the top of php file you are using:
PHP:
ini_set('memory_limit', '64M');
3. To set php limit for a directory files, do this:
In .htaccess file, add this:
PHP:
php_value memory_limit 64M

Hope it helps
 
Status
Not open for further replies.
Back
Top