Link to home
Start Free TrialLog in
Avatar of Pedro Chagas
Pedro ChagasFlag for Portugal

asked on

set_time_limit don't work

Hi E's, I put in my code the function: set_time_limit(0), and my server gives a error after 30 seconds after start the script.
I try change the value (0) for a big number in seconds like (20000), and it's the same thing!
What I have to do in my server for time with NO LIMIT.
I have to change php.ini? where?
I have to write something in httaccess?

Regards, JC
ASKER CERTIFIED SOLUTION
Avatar of jimhap
jimhap
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

This function has no effect when PHP is running in safe mode. There is no  workaround other than turning off safe mode or changing the time limit in the  php.ini.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pedro Chagas

ASKER

hi e's, if i tell to administrator of my server to change for 'no safe mode', what is the diferences between safe mode or no safe mode.
regards, jc
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial