I am having trouble with a script timing out at about 60 seconds every time.
The script does a few curl operations that access various API's and screen-grabs and it is in the middle of those curl operations at the moment it times out.
I have a progress checking mechanism that allows me check the progress of the script and I know that it is definitely not done doing what it needs to do; it is simply a time intensive operation. I am certain that it is not "hanging" on any particular operation since it tells me what page it is on (page 1 of x, etc etc). 60 seconds doesn't seem like a long time to execute, but rather a default setting somewhere that I cannot seem to override.
Here is what I have tried and currently have in the script:
There are no warnings or errors, just one basic notice that get spit out once it times out. There is nothing else in the output.
It simply times out at 60 seconds every time.
Any help is greatly appreciated.
The script does a few curl operations that access various API's and screen-grabs and it is in the middle of those curl operations at the moment it times out.
I have a progress checking mechanism that allows me check the progress of the script and I know that it is definitely not done doing what it needs to do; it is simply a time intensive operation. I am certain that it is not "hanging" on any particular operation since it tells me what page it is on (page 1 of x, etc etc). 60 seconds doesn't seem like a long time to execute, but rather a default setting somewhere that I cannot seem to override.
Here is what I have tried and currently have in the script:
Code:
set_time_limit(0);
ini_set('display_errors',1);
ini_set('max_execution_time', 300);
ini_set('default_socket_timeout', 300);
error_reporting(E_ALL);
There are no warnings or errors, just one basic notice that get spit out once it times out. There is nothing else in the output.
It simply times out at 60 seconds every time.
Any help is greatly appreciated.