Re: an error "Maximum execution time of 30 seconds exceeded in C:\...

From: Date: Wed, 05 Sep 2001 05:07:33 +0000
Subject: Re: an error "Maximum execution time of 30 seconds exceeded in C:\...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65986@lists.php.net to get a copy of this message
>I got an error "Maximum execution time of 30 seconds exceeded in C:\... on line 224" while >accessing a PHP page tie to a Mysql database. >1. Is 30 seconds the normal setting before it times out ? It is the default settings. It's rarely normal that a script last that long. My longest scripts is about 8 seconds and it sends about 250 emails by grabbing the data in a database at various location! >2. Is this error is due to PHP or Mysql ? Tough to say because we do not know much about the error. But if you never made the connection to this database before I would first look into that. Comment the mysql code and run the page just to make shure it is that. >3. How to I set it to 60 seconds ? You can do it in php.ini or with the function set_time_limit (int seconds) But I would not do that. Something not normal cause your script to be timed out. Putting the time limit at 60 seconds would not cure that. py >Thanks >Nyon

« previous php.general (#65986) next »