Reputation: 1941
i develop a webpage in PHP , in that i call a webservice [DotNet] . That service accept two parameters and store the details of the page in to database[For each user the data's deleted].For each user i need to store data . while i use while loop , it shows "".Fatal error: Maximum execution time of 100 seconds exceeded.." Is there any optimization for this ? Please help me to do this . Thanks in advance .
Upvotes: 0
Views: 552
Reputation: 44992
Maybe this will help:
if(!ini_set("max_execution_time", 0))
{
throw new Exception("Failed to set execution time");
}
Stops script from timing out.
Upvotes: 0
Reputation: 7406
Set max_execution_time = value
in your php.ini file or use theset_time_limit(0)
function within your PHP code
Upvotes: 3