473,320 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

anyway to exceed max execution time?

Hello all;

I set "max_execution_time = 120" in my php.ini file so that some lengthy php
routines in my auction software would have time to complete when
automatically relisting lots of items.

However, sometimes even 2 minutes is not long enough. I don't want to
increase the max time to 10 or 15 minutes, so I'm wondering if there is any
way to allow a specific PHP file to exceed the max_execution_time?

TIA.

Charles...
Jan 11 '06 #1
6 14229

"Charles Crume" <NO*******@charlescrumesoftware.com> wrote in message
news:Wz******************@tornado.ohiordc.rr.com.. .
Hello all;

I set "max_execution_time = 120" in my php.ini file so that some lengthy
php routines in my auction software would have time to complete when
automatically relisting lots of items.

However, sometimes even 2 minutes is not long enough. I don't want to
increase the max time to 10 or 15 minutes, so I'm wondering if there is
any way to allow a specific PHP file to exceed the max_execution_time?

TIA.

Charles...


set_time_limit(yourlimit)
http://www.php.net/set-time-limit
or ini_set('max_execution_time',yourlimit);
http://www.php.net/ini_set
I hope that's what you need.
Cheers.
--
----
Leonardo Armando Iarrusso - J2Be
www: http://www.J2be.com - e-mail: info[at]J2Be.com
Jan 11 '06 #2
Charles Crume wrote [reformatted]:
is there any way to allow a specific PHP file
to exceed the max_execution_time?


http://www.php.net/set_time_limit

--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
Jan 11 '06 #3
max_execution_time = 0
This option is equivalent to have infinite time

Jan 11 '06 #4
C.
....but do you really expect your users to wait that long. And not click
the 'submit' button again.

You need to fix the real problem - not fix the problems in the
workaround.

C.

Jan 11 '06 #5

<to*****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
max_execution_time = 0
This option is equivalent to have infinite time


No, don't want to set it to unlimited, just a little longer than normal.
Jan 11 '06 #6

"J2be" <in**@nospamj2be.com> wrote in message
news:43**********************@reader4.news.tin.it. ..

[snip]
set_time_limit(yourlimit)
http://www.php.net/set-time-limit
or ini_set('max_execution_time',yourlimit);
http://www.php.net/ini_set
I hope that's what you need.


Yes, that's what I am looking for.

Thanks!!!!
Jan 11 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: cournape | last post by:
Hi there, I have some scientific application written in python. There is a good deal of list processing, but also some "simple" computation such as basic linear algebra involved. I would like to...
5
by: Johannes Lebek | last post by:
Hi there, lately, I experienced a strange thing on my DB2 V8.1 on Windows: Some queries took a very long time. A snapshot discovered the following: Number of executions = 47...
7
by: Tim Quon | last post by:
Hi Is there any function to get the current time so I can calculate the execution time of my code? What all is in the time.h and sys/times.h? Thanks Tim
5
by: Steve - DND | last post by:
How can I exceed the number of persistent connections allowed on a ServicePoint(which is 2 connections)? I believe this is the cause of the problems with my thread from earlier titled "Unable to...
3
by: iam980 | last post by:
Hello All. We have tested following SQL script from query analyzer: -- Script begin DECLARE @I int; SET @I = 1; WHILE @I < 10000000 BEGIN SET @I = @I + 1; END -- Script end
2
by: Ina Schmitz | last post by:
Hi NG, does IBM Universal Database 8.2 make any difference between actual and estimated execution plans like in SQL Server ("set showplan_all on" for estimated execution plan and "set statistics...
17
by: romixnews | last post by:
Hi, I'm facing the problem of analyzing a memory allocation dynamic and object creation dynamics of a very big C++ application with a goal of optimizing its performance and eventually also...
9
by: Summercool | last post by:
I wonder to show the images in a table format... and to set a box of width 100px and height 100px, is there a way? Right now, if I set width to 100px, then height can be 180px... If I set...
6
by: Mikhail Kovalev | last post by:
I'm using set_time_limit() to set maximum execution time. Is there a way to check how much time is left at any time during the execution itself?
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.