//start php tag set_time_limit(0);//end php tag It has effect only if the safe mode is disabled in the server.