I know that PHP CLI is usually used because of none time limits and primary because it is not using Apache threads/processes.
But is there any way how to explicitly set the max_execution_time for some scripts which i don't want to have the freedom of "unlimited time" and just want to keep those script under control?
If you think this question may be better answered on superuser.com and have permission to move it, do it. :)
Edit: I've been Googling a bit and found the right parameter:
php -d max_execution_time=5 script.php
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…