473,385 Members | 1,337 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,385 software developers and data experts.

Please help: Prevent time-outs

Hi All !

Could somebody help me out on this one:

My script needs to execute a time consuming process which might take
as long as an hour or so to finish. Usually, the time limit would
produce a time out after 30 seconds or so. Modifying the
set_time_limit() does not resolve the problem since the browser then
shows a could not display page error after 2 minutes or so.

Also, I do not need to wait for browser output after the process
finishes. Instead the server would send me an email.

In short words:
How can I get a script to work during an hours so without producing a
time-out and being able to close the browser upon starting the script.
Sort of "Fire and Forget".

Your help is greatly appreciated.
Jerry
Jul 17 '05 #1
2 1759

"Jerry" <su*********@lycos.com> wrote in message
news:j9********************************@4ax.com...
Hi All !

Could somebody help me out on this one:

My script needs to execute a time consuming process which might take
as long as an hour or so to finish. Usually, the time limit would
produce a time out after 30 seconds or so. Modifying the
set_time_limit() does not resolve the problem since the browser then
shows a could not display page error after 2 minutes or so.

Also, I do not need to wait for browser output after the process
finishes. Instead the server would send me an email.

In short words:
How can I get a script to work during an hours so without producing a
time-out and being able to close the browser upon starting the script.
Sort of "Fire and Forget".

Your help is greatly appreciated.
Jerry


Does running the script from the command line (php -f script.php) not suit
your purposes?

Garp
Jul 17 '05 #2
"Jerry" <su*********@lycos.com> wrote in message
news:j9********************************@4ax.com...
Hi All !

Could somebody help me out on this one:

My script needs to execute a time consuming process which might take
as long as an hour or so to finish. Usually, the time limit would
produce a time out after 30 seconds or so. Modifying the
set_time_limit() does not resolve the problem since the browser then
shows a could not display page error after 2 minutes or so.

Also, I do not need to wait for browser output after the process
finishes. Instead the server would send me an email.

In short words:
How can I get a script to work during an hours so without producing a
time-out and being able to close the browser upon starting the script.
Sort of "Fire and Forget".


To prevent browser time out you need to send something--a HTML comment
perhaps--to it every now and then. Not a good solution though for a script
that runs for an hour, since a lot of data could be transferred in that time
and the browser could crash from the massive DOM tree.

register_shutdown_function() might be what you're looking for.
Jul 17 '05 #3

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

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
16
by: Thomas G. Marshall | last post by:
This message is sent to these newsgroups because they are no longer valid: comp.lang.java comp.lang.java.api comp.lang.java.bugs comp.lang.java.misc comp.lang.java.setup comp.lang.java.tech
26
by: Spondishy | last post by:
Hi, I have a problem with divs and padding in IE6 and Firefox. Basically my example that I have attached works exactly how I want in IE6, but padding is treated differently in Firefox. My...
2
by: thowle | last post by:
Okay, I used to be able to run ASP scripts on IIS and then I installed MS SQL server 2000, and EVERY page I go to that has an .asp extension (even if the code inside is BLANK) will return a error...
25
by: Dave Turner | last post by:
I know that its impossible to completely prevent somebody from ripping a site (or cracking software) if that person has the skills and the time/patience, but there are tricks that can be employed...
6
by: David Lozzi | last post by:
Howdy, I'm new to classes. Below is my class User. (is this a reserved namespace or class?) It works great, kind of. If I specify the username and password, the correct firstname and lastname...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
11
by: E.T. Grey | last post by:
Hi, I have an interesting problem. I have a (LARGE) set of historical data that I want to keep on a central server, as several separate files. I want a client process to be able to request the...
1
by: MikeZdoesit | last post by:
Hi, I'm having trouble with setting up a shared object and I really need some help from someone more enlighten then myself in the field of actionscript :) Basically I have a talking character that...
1
by: scolivas | last post by:
Hi all, I have a situation that is requiring me to make an Entry Date part of the Primary Key. Problem I am having is that it includes the time too. What I have is an inventory return table. It...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.