PHP memory_limit – understanding and increasing

Originally published at: PHP memory_limit – understanding and increasing

PHP’s memory_limit is per-script, just as a highway’s speed limit is per-vehicle. For example, although PHP’s memory limit may be set to 1GB, that does not mean that scripts will pile up to use that 1 GB. Let’s take a closer look at understanding PHP’s memory_limit setting.   PHP memory_limit is a per-script setting PHP.net’s…