How to increase your PHP memory limit

To increase your PHP Memory Limit (memory_limit) in your php.ini file. If you dont know where is your php.ini file, you can look at this post
http://techrappers.com/post/28/creating-custom-phpini-file-shared-server
Then look for the word memory_limit, default memory limit is 64 MB. Now you can increase it to either 128 MB or bigger number like 512 MB.

memory_limit = 128M  ;

You can also use :

ini_set('memory_limit','64M'); 

in your PHP script for example in index.php to increase the memory limit.