Hello people,
I have a problem with my ISP! He kills my php script, if they were executed
over 30 seconds.
Can I use some trick to fake a little bit? That I can execute the script
longer!?
Greeting! 6 1997
Sven Dzepina wrote: Hello people,
I have a problem with my ISP! He kills my php script, if they were executed over 30 seconds. Can I use some trick to fake a little bit? That I can execute the script longer!?
Greeting!
If your ISP doesn't run your script in safe mode, which it most likely
does, then you can set_time_limit( 0); for unlimited execution time.
Otherwise there is probably no way to let it run longer.
"John Downey" <bl**@doesntexi st.com> wrote in message
news:8p******** *************** @twister.neo.rr .com... Sven Dzepina wrote:
Hello people,
I have a problem with my ISP! He kills my php script, if they were
executed over 30 seconds. Can I use some trick to fake a little bit? That I can execute the script longer!?
Greeting!
If your ISP doesn't run your script in safe mode, which it most likely does, then you can set_time_limit( 0); for unlimited execution time. Otherwise there is probably no way to let it run longer.
I heard a rumour that the sleep() function resets the script execution time
each time it's called. So if you use it in conjunction with a loop you can
reset the script execution time after each cycle.
Not tested tho!
Thanks!
My ISP has no safe_mode! =)
"John Downey" <bl**@doesntexi st.com> schrieb im Newsbeitrag
news:8p******** *************** @twister.neo.rr .com... Sven Dzepina wrote:
Hello people,
I have a problem with my ISP! He kills my php script, if they were
executed over 30 seconds. Can I use some trick to fake a little bit? That I can execute the script longer!?
Greeting!
If your ISP doesn't run your script in safe mode, which it most likely does, then you can set_time_limit( 0); for unlimited execution time. Otherwise there is probably no way to let it run longer.
"Sven Dzepina" <ma**@styleswit ch.de> wrote in message
news:3f******** *************** @newsread2.arco r-online.net... Thanks! My ISP has no safe_mode! =) "John Downey" <bl**@doesntexi st.com> schrieb im Newsbeitrag news:8p******** *************** @twister.neo.rr .com... Sven Dzepina wrote:
Hello people,
I have a problem with my ISP! He kills my php script, if they were executed over 30 seconds. Can I use some trick to fake a little bit? That I can execute the
script longer!?
Greeting!
If your ISP doesn't run your script in safe mode, which it most likely does, then you can set_time_limit( 0); for unlimited execution time. Otherwise there is probably no way to let it run longer.
If you were hosting your account on one of my servers and I found you
defeating the 30 second limit I'd be terminating your account as I'd deem
that you'd broken the Acceptable User Policy. The 30 second time limit is to
stop errant scripts running indefinitely and consuming resources needlessly
for the disbenefit of other users. If you get into the habit of turning this
time limit off you'll eventually create one of these scripts. I don't think
it's good programming practice to leave a user with a script running with no
indication that it's working. This is why we normally segment long processes
into smaller chunks and why things like progress bars were invented.
Paulus
> If you were hosting your account on one of my servers and I found you defeating the 30 second limit I'd be terminating your account as I'd deem that you'd broken the Acceptable User Policy. The 30 second time limit is to stop errant scripts running indefinitely and consuming resources needlessly for the disbenefit of other users. If you get into the habit of turning this time limit off you'll eventually create one of these scripts. I don't think it's good programming practice to leave a user with a script running with no indication that it's working. This is why we normally segment long processes into smaller chunks and why things like progress bars were invented.
This begs the question.....
How do you run a php process off-line?
I've built a small perl daemon (php too old) which runs php jobs
off-line. Communication is all via a mySQL table and I have a 'job
queue' webpage to keep an eye on how things are going.
I would really like to be able to spawn offline jobs from a web page
though. Something like....
click the link to get your report...
up pops a small browser window with a progress bar
when the progress bar completes the window reloads
with the report
.... but short of being able to fragment the report build process I can't
think how to do it.
Kevin Thorpe wrote: If you were hosting your account on one of my servers and I found you defeating the 30 second limit I'd be terminating your account as I'd deem that you'd broken the Acceptable User Policy. The 30 second time limit is to stop errant scripts running indefinitely and consuming resources needlessly for the disbenefit of other users. If you get into the habit of turning this time limit off you'll eventually create one of these scripts. I don't think it's good programming practice to leave a user with a script running with no indication that it's working. This is why we normally segment long processes into smaller chunks and why things like progress bars were invented.
This begs the question.....
How do you run a php process off-line?
I've built a small perl daemon (php too old) which runs php jobs off-line. Communication is all via a mySQL table and I have a 'job queue' webpage to keep an eye on how things are going.
I would really like to be able to spawn offline jobs from a web page though. Something like.... click the link to get your report... up pops a small browser window with a progress bar when the progress bar completes the window reloads with the report ... but short of being able to fragment the report build process I can't think how to do it.
Perhaps some nice javascript and flush() if used right. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: softwareengineer2006 |
last post by:
All Interview Questions And Answers
10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP)
I have listed over 10000 interview questions asked
in interview/placement test papers for all companies between year
2000-2005
in my website
http://www.geocities.com/allinterviewquestion/
So please have a look and make use of it.
|
by: connectrajesh |
last post by:
INTERVIEWINFO.NET
http://www.interviewinfo.net
FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES
NO ADVERTISEMENT
|
by: freepdfforjobs |
last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions
http://www.questpond.com/SampleInterviewQuestionBook.zip
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of
attending interviews. If you own a company best way to judge if the
candidate is worth of it.
http://www.questpond.com/InterviewRatingSheet.zip
|
by: Drew |
last post by:
I posted this to the asp.db group, but it doesn't look like there is much
activity on there, also I noticed that there are a bunch of posts on here
pertaining to database and asp. Sorry for cross-posting.
I am trying to build a "checklist", where a user can navigate to an ASP page
on the intranet which shows a list of "questions" that the user can check
off. I am trying to figure out how to do this so that it is scalable, but I
am...
|
by: Krypto |
last post by:
Hi,
I have used Python for a couple of projects last year and I found it
extremely useful. I could write two middle size projects in 2-3 months
(part time). Right now I am a bit rusty and trying to catch up again
with Python.
I am now appearing for Job Interviews these days and I am wondering if
anybody of you appeared for a Python Interview. Can you please share
the questions you were asked. That will be great help to me.
| |
by: ramu |
last post by:
C# Interview Questions and Answers8
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html
C# Interview Questions and Answers7
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers7.html
C# Interview Questions and Answers 6
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers-6.html
C# Interview Questions and Answers 5...
|
by: ramu |
last post by:
C# Interview Questions and Answers8
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html
C# Interview Questions and Answers7
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers7.html
C# Interview Questions and Answers 6
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers-6.html
C# Interview Questions and Answers 5...
|
by: ramu |
last post by:
C# Interview Questions and Answers8
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html
C# Interview Questions and Answers7
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers7.html
C# Interview Questions and Answers 6
http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers-6.html
C# Interview Questions and Answers 5...
|
by: reema |
last post by:
EJB Interview Questions
http://interviewdoor.com/technical/EJB-Interview-Questions.htm
CSS Interview Questions
http://interviewdoor.com/technical/CSS-Interview-Questions.htm
C Interview Questions
http://interviewdoor.com/technical/C-Interview-Questions.htm
C# Interview Questions
http://interviewdoor.com/technical/C-sharp-Interview-Questions.htm
C++ Interview Questions
http://interviewdoor.com/technical/C++-Interview-Questions.htm
|
by: reema |
last post by:
EJB Interview Questions
http://interviewdoor.com/technical/EJB-Interview-Questions.htm
CSS Interview Questions
http://interviewdoor.com/technical/CSS-Interview-Questions.htm
C Interview Questions
http://interviewdoor.com/technical/C-Interview-Questions.htm
C# Interview Questions
http://interviewdoor.com/technical/C-sharp-Interview-Questions.htm
C++ Interview Questions
http://interviewdoor.com/technical/C++-Interview-Questions.htm
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |