RE: [PHP] maximum execution time error

2005-07-05 Thread Jay Blanchard
[snip]
Is there a way to, on a script by script basis, change the maximum 
allowed time that a script is allowed to run?
[/snip]

http://www.php.net/set_time_limit

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] maximum execution time error

2005-07-05 Thread Greg Donald
On 7/5/05, James [EMAIL PROTECTED] wrote:
 Is there a way to, on a script by script basis, change the maximum
 allowed time that a script is allowed to run?

ini_set()

http://php.net/manual/en/ref.info.php#ini.max-execution-time


-- 
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] maximum execution time error

2005-07-05 Thread André Medeiros
On Tue, 2005-07-05 at 10:56 -0500, Jay Blanchard wrote:
 [snip]
 Is there a way to, on a script by script basis, change the maximum 
 allowed time that a script is allowed to run?
 [/snip]
 
 http://www.php.net/set_time_limit
 

More specifically... 

set_time_limit( 0 );

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] maximum execution time error

2005-07-05 Thread James

I also just found this...

ini_set(max_execution_time, 60)



But set_time_limit() seems more flexible, because you can call that 
in specific places in your script where you might expect long 
processing time.


Thanks!




At 10:56 AM -0500 7/5/05, Jay Blanchard wrote:

[snip]
Is there a way to, on a script by script basis, change the maximum
allowed time that a script is allowed to run?
[/snip]

http://www.php.net/set_time_limit



--
-James

Re: [PHP] maximum execution time error

2005-07-05 Thread Jochem Maas

Greg Donald wrote:

On 7/5/05, James [EMAIL PROTECTED] wrote:


Is there a way to, on a script by script basis, change the maximum
allowed time that a script is allowed to run?



ini_set()

http://php.net/manual/en/ref.info.php#ini.max-execution-time




also look here:
http://php.net/manual/en/function.set-time-limit.php

not to mention that the OP has a serious problem if his SQL statement
is actually taking longer than 30 seconds to generate! :-)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] maximum execution time error

2005-07-05 Thread James
I was actually doing some extreme performance testing with inserts 
when I got that message.  One of my scripts was inserting like 50,000 
rows and I was writing one single sql to do it...


I figured that because I came across this problem, I might as well 
find a work around if I run into this problem with my actual app.


Thanks for everyone's help.
-James


At 8:35 PM +0200 7/5/05, Jochem Maas wrote:

Greg Donald wrote:

On 7/5/05, James [EMAIL PROTECTED] wrote:


Is there a way to, on a script by script basis, change the maximum
allowed time that a script is allowed to run?



ini_set()

http://php.net/manual/en/ref.info.php#ini.max-execution-time



also look here:
http://php.net/manual/en/function.set-time-limit.php

not to mention that the OP has a serious problem if his SQL statement
is actually taking longer than 30 seconds to generate! :-)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php