If you are getting this error in your PHP application then you can incease the memory limit for website. There are various ways to increase memory_limit:
You can increase memory limt with .htaccess file ad PHP.ini file. But if you are using cpanel then you can directly increase memory limit...