linux - How to limit execution time on a php script -


i'm running php script via linux (not via browser) (php script.php). now, want limit execution time let's 10 seconds, means after 10 seconds process shutdown itself. how can that? tried set_time_limit. tried sleep(10); exit();

none of them made script shutdown.

change maximum execution time (in seconds) in php.ini configuration file.

max_execution_time = 7200

search in php.ini


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -