I have made a function in my Laravel application to send a message to my subscribers when I publish an entry, the problem is that it stops when it goes by the subscriber 28 and does not follow.
I’ve been researching and it seems that php by default for the script when it takes 30 seconds, I changed the configuration and even the support of my hosting has done for me. But still it is still cutting when it takes about 30 seconds.
Attached image of the php configuration of the cpanel
3
Answers
Put that on top of your php script.
Just change amount of seconds.
Php has a max execution time, you can set a new time limit:
php script
htaccess
Caution, scripts in an infinity loop will run forever.
If you are using Cpanel/WHM , go to “MultiPHP INI Editor”(Basic Mode) and select PHP version .
Then edit max_execution_time.
Screenshot attached :
Screen shot