PHP command line: max_execution_time and memory_limit -
quick question.
If I run a php script from the command line (via a cron job), "php ./somwthing-sync.php"), am I still surrounded by php max_execution_time and memory_limit?
Thanks
Nathan
If you see it , Then it says
max_execution_time integer This allows a script to allow maximum time in seconds to run before the parser ends, to help prevent this poorly-written scripts from binding the server Does. Default setting is 30. The default setting is 0 when running PHP from the command line.
Ace Unlimited means (if I'm not mistaken). For Memory_limit, the PHP command line will take the value defined in php.ini. You can easily do this by testing and remembering the code that eats memory and setting memory_limit to -1 in php.ini
Comments
Post a Comment