How to override PHP memory limit on the command line
Use -d memory_limit=512M
to override the memory limit or other PHP parameters on the command line without modifying php.ini
:
php_memory_limit.sh
php -d memory_limit=512M script.php
Check out similar posts by category:
PHP
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow