Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php memory_limit unlimited

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

//Fixed memory limit
ini_set('memory_limit','2048M');
Comment

check php memory limit

php -i | grep memory_limit
Comment

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
Comment

Define memory limit in PHP

define('WP_MEMORY_LIMIT', '128M');
Comment

PREVIOUS NEXT
Code Example
Php :: php check if file is video 
Php :: delete folder laravel 
Php :: php date format minus 1 day 
Php :: how to install bootstrap in laravel 8 
Php :: composer error installation 
Php :: if any comma in string in php 
Php :: laravel scout import command 
Php :: php foreach first element 
Php :: mysql replace a character in a string 
Php :: how to remove first element in array php 
Php :: php get ip to location 
Php :: laravel hash check password, Verifying That A Password Matches A Hash 
Php :: check if a string contains a substring php 
Php :: file_get_contents timeout 
Php :: print array php 
Php :: symlink in php 
Php :: php regex remove file extension 
Php :: full url php 
Php :: how to create controler in laravel 
Php :: redirect on validation error laravel to specific section laravel 
Php :: remove add media button wordpress editor 
Php :: laravel mix purge css 
Php :: wordpress get username 
Php :: test a single file laravel 
Php :: display errors in codeigniter 
Php :: laravel db does not exists 
Php :: wordpress custom loop 
Php :: kill php process mac 
Php :: laravel validation unique email 
Php :: php text colors 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =