473,387 Members | 1,863 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.

Sending Partial Pages?

I'd like to make a page with a sort of check list as it works.

I.e. CHECKING FOR FILE... SUCCESS then a few seconds later it sends
OPENING HANDLE... SUCCESS, etc.

But since PHP is server-side pause() wouldn't work... it only delays
the script from assembling the page before it sends it to the browser.
Can I send pieces at a time so I can get this sort of checklist effect
instead of waiting 20 seconds for it all to appear at once?

I'm thinking it's not possible, but I'm by no means a php expert.

thanks,
iw****@gmail.com

Sep 1 '05 #1
5 1857
You could use sleep() in conjunction with flush() and ob_flush() to
force the output to be sent to the browser before waiting.

Sep 1 '05 #2
I'll give that a shot, thanks!

Sep 1 '05 #3
Works perfectly, exactly what I wanted, thanks!

Sep 1 '05 #4
Hello!
I'd like to make a page with a sort of check list as it works.

I.e. CHECKING FOR FILE... SUCCESS then a few seconds later it sends
OPENING HANDLE... SUCCESS, etc.

But since PHP is server-side pause() wouldn't work... it only delays
the script from assembling the page before it sends it to the browser.
Can I send pieces at a time so I can get this sort of checklist effect
instead of waiting 20 seconds for it all to appear at once?


Why do you want to use a pause() function (actually sleep())?
I think the script should be executed as fast as possible.
If your script is slow you may use this sequence to flush everything:

flush();
ob_flush();

Using only flush() which seems (without trying) sufficient does not work
(when I tried it).

HTH
Hero Wanders
Sep 1 '05 #5
I don't really want to use sleep() (DOH! it is sleep), I was just sort
of using it as an example.

Thanks for the help
iw****@gmail.com

Sep 1 '05 #6

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

Similar topics

6
by: nospam | last post by:
I just read on Slash Dot about partial types. Now, is it possible to have a code behind split over two pages but still referencing the same .aspx file??? If so, that would be really nice as...
43
by: nospam | last post by:
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the...
7
by: nospam | last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or development stages at Microsoft, I am going to ask...
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
9
by: Fat Elvis | last post by:
I'd like to extend some of my Asp.net pages by using Partial Classes. Example ASP.Net Page: public partial class Admin_Customer : System.Web.UI.Page { protected void Page_Load(object sender,...
0
by: Samuel R. Neff | last post by:
We're migrating our .NET 1.1 web application to .NET 3.5 and during conversion we clicked "Convert to Web Application" on the web project. The results from this conversion were inconsistent. 1. ...
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: 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?
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...
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.