Jump to content

lauryn1

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

lauryn1's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello! I'm new working with Code Igniter and I have some doubts about the register_shutdown_function. My application has different controllers. Each of this controllers, with the curl library go to a site and read some news. I have a crontab in charge to execute this controllers every 15 minutes. Sometimes the sites are not working properly and I have a Fatal error: Maximum execution time of 300 seconds exceeded. I would like to use the register_shutdown_function to send myself a mail for letting me know that a problem is happening with one of my controllers because the site doesn't answer in 5 minutes. The problem I have that always that is giving me the fatal error it's in a different file that it's not my controller file. I don't know how to manage it. It's very important for me to solve it because if not my crontab goes crazy. Thank you very much in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.