Use -d memory_limit=512M
to override the memory limit or other PHP parameters on the command line without modifying php.ini
:
php -d memory_limit=512M script.php
Use -d memory_limit=512M
to override the memory limit or other PHP parameters on the command line without modifying php.ini
:
php -d memory_limit=512M script.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