Jump to content

Code Igniter and use of register_shutdown_function


lauryn1

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.