There are many ways to change PHP memory limit. These are very simple ways to do

1. php.ini

Locate your php.ini file by run phpinfo() function, I think you must have PHP skill enough to do this .

Then find out the line like this in php.ini file

Code:
memory_limit = 64M
You can change 64M to whatever you want.

This way only do when you are owner of server or VPS. Let 's use other way if you are not.

2. .htaccess

Put this line in your first line of your .htaccess file

Code:
php_value memory_limit 64M
3. PHP run time

Maybe you hosting provider will accept you change ini information in run time, in this case you can add php code like this in first line of php bootstrap file

PHP Code:
ini_set('memory_limit''64M'); 
if you use drupal you will edit file

Code:
sites/default/settings.php
If you use wordpress then it is

Code:
wp-config.php
And if you use magento it should be

Code:
index.php

View more threads in the same category: