3 ms·
php-cli scripts normally don't have an execution time limit (or a memory limit?), which makes them ideal for upgrades/database maintenance/cron jobs/etc while b
by b101010 9y ago
php-cli scripts normally don't have an execution time limit (or a memory limit?), which makes them ideal for upgrades/database maintenance/cron jobs/etc while being able to reuse code from the application itself
one example: https://docs.moodle.org/22/en/Administration_via_command_line https://docs.moodle.org/22/en/Administration_via_command_lin...
- korzun 9y ago> php-cli scripts normally don't have an execution time limit (or a memory limit?), which makes them ideal for upgrades/database maintenance/cron jobs/etc while being able to reuse code from the application itself ? PHP enforces memory limits out of the box by default. What languages have execution limits on CLI?
- octalmage 9y agoThey're probably referring to web hosts. Many hosts have timeouts for the web, but not the cli. So for long running tasks you write cli scripts. In the WordPress world this is easily done using WPCli and eval-file.