Blog Madness

e-Marketing tips

Tuesday, February 26, 2013

Executing large PHP scripts.

  • A PHP script executed from the command-line or from a shell script, cron job, etc. does not have a timeout by default.
  • You can also set a PHP script's timeout dynamically with the set_time_limit() function. Beware: set_time_limit() has no effect when PHP is running in safe mode.