473,800 Members | 3,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

flush() does not work

don't know whether this has anything to do with the cgi mode, but flush()
didn't work.

#!php-cgi
<html>
<body>
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111
111111111111111 111111111111111 111111111111111 111

<?php flush();sleep(1 0); ?>
222222
<?php flush();sleep(1 0); ?>
333333
<?php flush();sleep(1 0); ?>
444444
</body>
</html>

Jan 13 '08 #1
2 3786
those 3 sleep(10) cause error, since the script exceeded the 30 s default.
btu that's unrelated, reduce to 5 s the same thing

Jan 13 '08 #2
never mind, buffer conf is 2 big
Jan 13 '08 #3

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

Similar topics

7
7008
by: Jon Spivey | last post by:
Experimenting with response.flush() but can't seem to get it to work. This code <% response.write "<p>started</p>" response.flush() for i = 1 to 10000000 i = i +1 next response.write "<p>ended</p>" %>
1
4663
by: Victor Irzak | last post by:
Hello, I have a g++-3.3.1 compiler (latest). I can't figure the type of endl, ends, flush. Here is my program. It compiles with VS.NET, Intel C++ compiler, but not with g++. If you can compile it using some other type, please post the type used.
30
45810
by: Jonathan Neill | last post by:
I'm aware that there is no ANSI (or POSIX, or any standard, to my knowledge) way of flushing stdin or any other application-level input buffer, but if anyone knows a hack or a non-portable way to do this, no matter how obscure or arcane, I'd appreciate it.
11
5951
by: Junkguy | last post by:
I need some help programmatically causing a row in a DataGrid to "flush" its contents to its bound data (in Visual Studio 6 using Windows Forms with C#). My issue is I want to send an update to a database from a menu command while the user is editing a DataGrid. This is unusual in regard to examples and normal practice in that the cell of the DataGrid still has the focus. In all examples I can find, the user normally presses a button on...
5
2507
by: Luiz Vianna | last post by:
Guys, I need to send some info to my client while I'm processing some stuff. The flow will be something like : -process -response -process -response .... I imagine to use response.flush (as I did on ASP) but it does not work. See my test code, after sending 2 lines on response, I'm simulating a processing time before sending other 2 lines.
4
5857
by: Mantas Miliukas | last post by:
Hi, I have problem when flushing the generated HTML code to the client. It seems that "Page.Response.Flush()" method doesn't work at all. See my code below: protected override void Render(HtmlTextWriter writer) { for (int i = 0; i < 100; i ++) {
1
5486
by: nitroamos | last post by:
i'm working on improving the IO for the software project i'm working on to do two extra things. first, i'm going to add HDF5 functionality, and second, add the ability to write binary output. the software is computational science where a lot of stuff is going to be calculated and written to a file. e.g. could be up to gigabytes of data. my question has to do with the latter -- and how often i need to call "flush" on the stream. what I...
0
4199
by: jose.mendez22 | last post by:
I'm trying to fire a pop-up window before I execute a lengthy stored procedure so I may utilize this window as a status window on number of records executed. After my response.write statements which include the javascript I call the flush mehtod, which seems is ignored? However when I mimic the same process using a loop (and no ado object) the flush works correctly. Does anyone have any suggestions why this is not working or a work...
10
3596
by: Peter Larsen [] | last post by:
Hi, Is is possible to programmatically flush all opened files ?? BR Peter
0
9694
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, 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...
0
9553
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10281
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10256
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,...
0
9095
agi2029
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...
1
7584
isladogs
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...
0
6824
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.