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

what happens when client press "Stop"?

I have a BIG php output and I start to transmit after client's request.

What happen on server when client press "Stop"?

PHP continues to send data? Where? Until the end?
Sep 5 '06 #1
2 1855

Chameleon wrote:
I have a BIG php output and I start to transmit after client's request.

What happen on server when client press "Stop"?

PHP continues to send data? Where? Until the end?
It depends. By default, when the connection is aborted (i.e. when the
user presses the "stop" button in their browser) the script stops
executing. This behavior can be changed with the ignore_user_abort
directive in php.ini or with the ignore_user_abort() function. In this
case, the script will run to completion and you can detect the client
disconnect using connection_aborted().

More details can be found here:

<http://www.php.net/manual/en/features.connection-handling.php>

Sep 5 '06 #2
In article <11*********************@h48g2000cwc.googlegroups. com>,
"ZeldorBlat" <ze********@gmail.comwrote:
Chameleon wrote:
I have a BIG php output and I start to transmit after client's request.

What happen on server when client press "Stop"?

PHP continues to send data? Where? Until the end?

It depends. By default, when the connection is aborted (i.e. when the
user presses the "stop" button in their browser) the script stops
executing. This behavior can be changed with the ignore_user_abort
directive in php.ini or with the ignore_user_abort() function. In this
case, the script will run to completion and you can detect the client
disconnect using connection_aborted().

More details can be found here:

<http://www.php.net/manual/en/features.connection-handling.php>
Yeah, but you can only perform server-side actions, no output will be
sent to the browser after the user clicks stop. Just worth mentioning.
--
Sandman[.net]
Sep 5 '06 #3

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

Similar topics

5
by: BJörn Lindqvist | last post by:
I think it would be cool if you could refer to instance variables without prefixing with "self." I know noone else thinks like me so Python will never be changed, but maybe you can already do it...
8
by: Simone Chiaretta | last post by:
I've a very strange behaveour related to a website we built: from times to times, something should happen on the server, and all static variables inside the web application, both defined inside aspx...
3
by: gregory_may | last post by:
According to this article, I cant change "CanStop" on the fly!!! ...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
1
gman2k1
by: gman2k1 | last post by:
I am a python noob and was wondering how to "listen" for a keystroke. In other words, I want a program to run, but when I press a key (a regular key, not Ctrl-C or Ctrl-Break), I want the program to...
3
by: Doker | last post by:
Lets consider following code: while (true) { string t = new String; } You probably thing this is the good solution because "narrow scope of variable to the minimum". But wait. Mem usage is...
0
by: Killer42 | last post by:
Hi all. Does anyone have any clue why any big FTP downloads I do in either FireFox or IE always terminate after two hours? It's always within a minute of the two-hour mark. I'm pretty sure it's...
25
by: Peng Yu | last post by:
Hi, It is possible to change the length of "\t" to a number other than 8. std::cout << "\t"; Thanks, Peng
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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,...
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.