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

Processing data using a web interface

I have a script that processes a lot of data. Ideally it would be run
from the CLI, however I want to run it from a browser, but I don't want
the browser hanging on me forcing me to restart from scratch.

My question is, how do I output data to the browser when something is
processed when it is processed instead of having all the output come at
once when the script is done?

Is there a set amount of time where the page processing the data might
time out? If so, how do I change this timeout to when the script is done?
Jul 25 '07 #1
1 1229
Vernon Wenberg III wrote:
I have a script that processes a lot of data. Ideally it would be run
from the CLI, however I want to run it from a browser, but I don't want
the browser hanging on me forcing me to restart from scratch.

My question is, how do I output data to the browser when something is
processed when it is processed instead of having all the output come at
once when the script is done?

Is there a set amount of time where the page processing the data might
time out? If so, how do I change this timeout to when the script is done?
Vernon,

There's no way to ensure the data will be displayed.

You can call flush() to force the output out of php. But the web server
is still free to cache it, and the browser may or may not display it
immediately.

You can't do much about the server, but browsers are more likely to
cache data if you have things like tables which haven't been closed yet
(</table not sent yet). But that's not necessarily the only reason.
Keeping the data simpler helps.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 25 '07 #2

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

Similar topics

5
by: WmGill | last post by:
I am experimenting with Python, and want to convert some of my PHP scripts to python cgi scripts. In PHP I use PHP_SELF for the action target. This way I can "reuse" data in fields (i.e. if the...
6
by: Anders Søndergaard | last post by:
Hi, I'm trying to process a large filesystem (+20 million files) and keep the directories along with summarized information about the files (sizes, modification times, newest file and the like)...
4
by: Raj | last post by:
Hi I am developing a POS system for a retail business and I need to support accepting the credit and the debit cards. This authorization interface need to be integrated to the my POS...
7
by: gj | last post by:
I have an application in Access 97 I will be rewriting in the latest version of Access in 6 months. In the meantime, does anyone know of an ActiveX control I can add into an Access 97 form to...
9
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
5
by: pmclinn | last post by:
I have data stored in the following fashion: Interface Name, Mac Address11,0000001234 12,0000000235 12,0000000005 13,000003341A 12,00ca000000 ....
0
by: sram | last post by:
Hi, Problem statement: We have some amount of data stored in various excel sheets and we generate a few reports from these data. We are in the process of consolidating all data to reside in a...
5
by: SRAM | last post by:
Hi, Problem statement: We have some amount of data stored in various excel sheets and we generate a few reports from these data. We are in the process of consolidating all data to reside in a...
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:
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
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...

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.