php set unlimited memory code example
Example 1: memory limit php ini_set
ini_set("memory_limit","256M");
Example 2: php memory_limit unlimited
//Unlimited momory limit
ini_set('memory_limit', '-1');
//Fixed memory limit
ini_set('memory_limit','2048M');