473,385 Members | 1,373 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.

Time Out Error

Hi.

My Web application contains a csv export function. This function
exports a lot of data, and it should take up to 2 minutes.
However, I think the "loading time limit" is 30 seconds or so. Does
anyone know how I can change this?

Jul 17 '05 #1
3 1600
On 16 Mar 2005 13:49:51 -0800, bi*******@gmail.com wrote:
My Web application contains a csv export function. This function
exports a lot of data, and it should take up to 2 minutes.
However, I think the "loading time limit" is 30 seconds or so. Does
anyone know how I can change this?


http://uk2.php.net/manual-lookup.php?pattern=time+limit

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2

<bi*******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi.

My Web application contains a csv export function. This function
exports a lot of data, and it should take up to 2 minutes.
However, I think the "loading time limit" is 30 seconds or so. Does
anyone know how I can change this?


Q. How do I run a time consuming PHP script?
A. Two types of time-outs can occur during the execution of a PHP script:
the server terminates the script because it is taking too long to finish, or
the client terminates the connection while waiting for a response. You can
avoid the first by setting a different time limit through
set_time_limit()--server configuration permitting. The second type of
time-outs are much harder to avoid because you have no control over the
client. Typically a browser waits 30 seconds to a minute for data to arrive.
If your script does not output anything within that time frame, the
connection will be teriminated. An end-user might also terminate a
connection manually if the script seems unresponsive.

There is no good solution to this second problem. Your script must output
something to keep the connection active.
Jul 17 '05 #3
Chung Leong wrote:

<bi*******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi.

My Web application contains a csv export function. This function
exports a lot of data, and it should take up to 2 minutes.
However, I think the "loading time limit" is 30 seconds or so. Does
anyone know how I can change this?


Q. How do I run a time consuming PHP script?
A. Two types of time-outs can occur during the execution of a PHP script:
the server terminates the script because it is taking too long to finish,
or the client terminates the connection while waiting for a response. You
can avoid the first by setting a different time limit through
set_time_limit()--server configuration permitting. The second type of
time-outs are much harder to avoid because you have no control over the
client. Typically a browser waits 30 seconds to a minute for data to
arrive. If your script does not output anything within that time frame,
the connection will be teriminated. An end-user might also terminate a
connection manually if the script seems unresponsive.

There is no good solution to this second problem. Your script must output
something to keep the connection active.


Or launch it as a background process and notify the client by some other
means, such as email.

--
Kenneth Downs
Secure Data Software, Inc.
(Ken)nneth@(Sec)ure(Dat)a(.com)
Jul 17 '05 #4

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

Similar topics

18
by: Ken | last post by:
Hi. Can anyone refer me to any articles about the compatibility between c++ polymorphism and real-time programming? I'm currently on a real-time c++ project, and we're having a discussion...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
4
by: Christaaay | last post by:
I have been using the code below successfully for almost a year. yesterday, I began getting a run time error 6 (overflow). I am using the code in an Access 2000 database. Can anyone help me...
1
by: MLH | last post by:
I want to change my system time date each time an A97 app is started. Here's how I've been doing it. Am looking for a better way. Sure some of you have researched this. Function...
1
by: Mark | last post by:
I have .aspx code-behinds that inherit from the class below. The code runs just fine, but the form designer bombs at design time when trying to view the .aspx page in VS.NET 2003. If I comment...
1
by: Alfonso Morra | last post by:
Hi I'm compiling some code and need to generate some random numbers. To save time, I decided to use the srand, rand and time functions. My code worked (atleast built fine) until I added time.h,...
4
by: HNguyen | last post by:
Hi, I have a Web application in ASP.NET. My Application allows the users upload files into the server after checking their user names and passwords. For each transaction, the Web program will...
15
by: Khurram | last post by:
I have a problem while inserting time value in the datetime Field. I want to Insert only time value in this format (08:15:39) into the SQL Date time Field. I tried to many ways, I can extract...
9
by: ThunderMusic | last post by:
Hi, I'd like to create a compile time error in my class... maybe there's a way already built in in the framework so I can achieve what I want... I have 2 constructors in my class. One of them...
4
by: ahmurad | last post by:
Dear Xperts, In my database table some fault code type records are inserted and the values are like bellows: Error:2/FC:10; 00:15:13 16/03/2009; Error:2/FC:20; 00:15:15 16/03/2009; ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
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: 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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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.