• 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

Change the alert text on add to cart action without selected variation in Woocommerce

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

PHP each() function replacement

Having trouble with PDO queries (Notice: Undefined index)

How to get company posts from LinkedIn via API?

PHP function Not Working As Expected From functions.php Include File

Statement that checks whether a URL contains a particular path?

Open a popup box after receiving result from ajax

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

"cannot list resources" error from WooCommerce REST API

PHP: Telegram Bot: Insert line break to text message

Match csv filenames to table names and import

how to redirect the user back to desired URL after login page in PHP?

How to get values inside <![CDATA[values]] > using php DOM?

jQuery Ajax Post with data

About Contact Privacy policy Terms and conditions