Sakthivel
Sakthivel

Reputation: 1941

Maximum time limit Error in php

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

Answers (2)

Lizard
Lizard

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

James Goodwin
James Goodwin

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

Related Questions