search

Home  >  Q&A  >  body text

php - cronrab scheduled execution script maximum execution time

Use crontab curl or wget to execute a php script regularly. It is found that the execution time of the script is up to 7 seconds, and the subsequent execution will not be executed. Where can I set the running time of this script? Set_time_limit 0 has been set in the header of the php script. .

迷茫迷茫2715 days ago987

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默2017-06-24 09:44:18

    curl or wget has timed out. It is recommended to use php-cli to execute a time-consuming script

    reply
    0
  • 为情所困

    为情所困2017-06-24 09:44:18

    You can check the corresponding timeout settings in php.ini and php-fpm, but php-cli is still recommended

    reply
    0
  • Cancelreply