Using the memory_limit directive
By default, a PHP script can allocate up to 128 megabytes of memory. To change this limit, use a text editor to modify the memory_limit directive in your php.ini file. For example, to allow scripts to allocate a maximum amount of 256 megabytes of memory, use the following setting:More information
- To view a complete list of php.ini directives, please visit http://www.php.net/manual/en/ini.list.php.
- For more information about the memory_limit directive, please visit http://www.php.net/manual/en/ini.core.php#ini.memory-limit.