This article describes how to change the memory limit for PHP scripts by using the memory_limit directive in an .htaccess file.
By default, a PHP script can allocate up to 128 megabytes of memory. You can modify this limit by changing the memory_limit directive in an .htaccess file.
To change the memory limit for PHP scripts, follow these steps:
php_value memory_limit xxxM
<?php phpinfo(); ?>
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.