Answers for "memory_limit php"

PHP
6

php memory_limit unlimited

//Unlimited momory limit
ini_set('memory_limit', '-1');

//Fixed memory limit
ini_set('memory_limit','2048M');
Posted by: Guest on November-30-2020
3

memory limit php ini_set

ini_set("memory_limit","256M");
Posted by: Guest on March-20-2020
0

Increase the PHP memory limit

/*
To increase the PHP memory limit setting, edit your PHP.ini file found under /usr/local/etc/php/7.4/.
Increase the default value (example: Maximum amount of memory a script may consume = 128MB) of the PHP memory limit line in php.ini.
*/

memory_limit = 256M
Posted by: Guest on November-03-2020
0

memory_limit php

Terminal:

	php --ini
  
	vi /usr/local/etc/php/7.4/php.ini
      
php.ini
     
	 Search for the string memory_linit
       
     	Press Esc :/memory_limit
          
     Then press i and change the value to -1
          // -1 : We don't limit the quantity of memory of PHP
          memory_limit = -1 // By default = 128M
          
      Then press Esc:w to save and Esc:q to close the file
Posted by: Guest on September-30-2021

Browse Popular Code Answers by Language