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

increase PHP Memory

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

Define memory limit in PHP

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

PREVIOUS NEXT
Code Example
Php :: laravel 8 404 status 
Php :: features of PHP7 
Php :: get day from date php 
Php :: how to get match date and month in php 
Php :: array filter multiple conditions php 
Php :: wordpress log errors 
Php :: round to 2 decimal places php 
Php :: laravel global scope 
Php :: do i need to install php after xampp 
Php :: laravel 7 eloquent on delete set null schema 
Php :: or where in codeigniter 
Php :: display image from database in laravel 
Php :: codeigniter abort 404 
Php :: connect another database in wordpress 
Php :: instal phpgd2 
Php :: wp_query post by category taxonomy 
Php :: laravel set appends 
Php :: image upload in laravel 
Php :: php object 
Php :: laravel migration string length 
Php :: Laravel eloquent restore soft delete 
Php :: how to set time ago in php 
Php :: display image in php from folder 
Php :: php how to connect to db using PDO 
Php :: Delete quotes in php 
Php :: check duplicate data in array php 
Php :: php date diff in days 
Php :: laravel where not equal 
Php :: get site url 
Php :: spatie laravel activity log 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =