• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How do I set the maximum php memory limit

phpmemory


PHP Snippet 1:

ini_set('memory_limit','10240M');

PHP Snippet 2:

 1) open your php.ini file
 2) change memory_limit = 10240M

Related Snippets

500 Internal Server Error on Ajax request. Not sure the origin of the problem

Show date difference as "20" instead of "20 years ago"

PHP using str_starts_with for array to exclude same as with wildcard

Getting public posts of a random user from Facebook API

How can i update or reset my password without entering email field in laravel-8?

Phalcon: setStatusCode returns empty response

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

Why is this PHP array not the same?

Find out the name of the last script that included the current one

(Cache::lock()) -> get() -- Under what conditions does it return false?

How do I call Validator from a namespace with an already existing Validator class

PHP Include for HTML?

Facebook API, get page post link (PHP)

What will the best solution for this multiple optional filter?

PHP array, move keys and values to new array, but mix it up

About Contact Privacy policy Terms and conditions