Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Increase memory_limit of a particular script  (Read 2095 times)

0 Members and 1 Guest are viewing this topic.

Aby

  • Guest
Increase memory_limit of a particular script
« on: May 06, 2014, 01:32:47 pm »
Increase memory_limit of a particular script

You can increase the memory_limit for a specific script by editing the file and after “<?php”, place the following code

Code: [Select]
ini_set(“memory_limit”,128M”);
Also we can increase memory_limit of a particular user by creating a custom php.ini file in their document root. Create php.ini as,

Code: [Select]
memory_limit = 64M
or

edit .htaccess file and add as,

Code: [Select]
php_value memory_limit 64M
====