Webhosting and cheap domain registration services
  

 Home

PHP Manual
PrevAppendix H. List of core php.ini directivesNext

Resource Limits

Table H-3. Resource Limits

NameDefaultChangeable
memory_limit"8M"PHP_INI_ALL

Here's a short explanation of the configuration directives.

memory_limit integer

This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. In order to use this directive you must have enabled it at compile time. So, your configure line would have included: --enable-memory-limit. Note that you have to set it to -1 if you don't want any limit for your memory.

As of PHP 4.3.2, and when memory_limit is enabled, the PHP function memory_get_usage() is made available.

When an integer is used, the value is measured in bytes. You may also use shorthand notation as described in this FAQ.

See also: max_execution_time.


PrevHomeNext
Language OptionsUpData Handling

 

  

Network sites:

Domain registration - Domain registration and domain name transfer services  
 
$8.95 Cheap Domain : Free domain name search to register domain or transfer domain name 
 
 
 

Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to http://www.php.net/docs.php