• 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

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in

Hi, I am making a contact form thingy, and my php isn't working any reason why?

PHP my timezone is no setting up in PHP.ini File in xampp

XSS attack still works despite htmlspecialchars() doing its work

Add bold text and line break into Laravel Notification Email

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

GRPC installed successfully on ubuntu but php is looking for it in another folder

How to find the date a user created their Google account

Yii2: How do I debug console commands?

Statement that checks whether a URL contains a particular path?

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'column_name' in Laravel

Unable to match results of php hash_hmac() and coldfusion hmac()

Inserting Country Selection into MySQL PHP [duplicate]

Can I write PHP code across multiple lines per statement?

Laravel Model save() & update() Not Saving

About Contact Privacy policy Terms and conditions