Hi,
First of all, I am looking for a way to force the execution of a php
script to explicitly stop when told to do so by the client
connection. I know when you hit the browser stop button php normally
stops, but it doesn't stop immediately (ie. if the script is in a
loop, it will keep going for a bit). Also, I am looking for a way to
force php to stay alive, even if the connection to the client drops.
Finally, does anyone know of a way to enable chatter between a single
php script and its client (ie. php well send out something, then the
client will respond, and then php will send another something, ...)
Thanks,
Daniel 2 2462
On Feb 14, 9:36 am, Dan99 <power...@gmail .comwrote:
Hi,
First of all, I am looking for a way to force the execution of a php
script to explicitly stop when told to do so by the client
connection. I know when you hit the browser stop button php normally
stops, but it doesn't stop immediately (ie. if the script is in a
loop, it will keep going for a bit). Also, I am looking for a way to
force php to stay alive, even if the connection to the client drops.
Finally, does anyone know of a way to enable chatter between a single
php script and its client (ie. php well send out something, then the
client will respond, and then php will send another something, ...)
Thanks,
Daniel
Use ignore_user_abo rt():
<http://www.php.net/ignore_user_abo rt>
That will definitely answer your second question. I'm not sure if
there's much you can do about the first one, though. You might try
checking inside the loop if the connection has been aborted and then
breaking out of it.
On Thu, 14 Feb 2008 16:20:50 +0100, ZeldorBlat <ze********@gma il.com>
wrote:
On Feb 14, 9:36 am, Dan99 <power...@gmail .comwrote:
>Hi,
First of all, I am looking for a way to force the execution of a php script to explicitly stop when told to do so by the client connection. I know when you hit the browser stop button php normally stops, but it doesn't stop immediately (ie. if the script is in a loop, it will keep going for a bit). Also, I am looking for a way to force php to stay alive, even if the connection to the client drops. Finally, does anyone know of a way to enable chatter between a single php script and its client (ie. php well send out something, then the client will respond, and then php will send another something, ...)
Thanks, Daniel
Use ignore_user_abo rt():
<http://www.php.net/ignore_user_abo rt>
That will definitely answer your second question. I'm not sure if
there's much you can do about the first one, though. You might try
checking inside the loop if the connection has been aborted and then
breaking out of it.
In a HTML context, spaces are no content, and if you have no buffering
mechanism somewhere, a simple statement like this in every loop:
echo ' ';
flush();
if(connection_a borted()) exit;
....could very well halt execution sooner. However, if you need to stop
'dead on', HTTP is not the way to go.
--
Rik Wasmus This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John |
last post by:
Hi
I am using the Internet Transfer Control as follows;
strData = "Some data"
strHeaders = "Content-Type: application/x-www-form-urlencoded" & vbCrLf
objInet.Execute strURL, "POST", strData, strHeaders
I would like to keep the internet connection alive. What would be the syntax
|
by: John |
last post by:
Hi
I am trying to use the internet transfer control to send some data to a
site. I want my MS ISA proxy server to keep the connection alive. What
syntax should I use to send the 'keep alive' data to the proxy server? Is
any of the following any good?
objInet.Execute "http://wwww.mysite.com", "POST", "Some Data",
"Content-Type: application/x-www-form-urlencoded Proxy-Connection:
Keep-Alive" & vbCrLf
|
by: Martin Maat |
last post by:
I am puzzled.
I have this object that uses a thread. The thread is encapsulated by the
object, the object has Start and Stop methods to enable the client to start
or stop the thread.
I found that the object will not be garbage collected while the thread is
running. Fair enough, the documented explanation is that the GC compresses
objects on the heap and needs to update references, the references will be
invalid for a couple of moments...
|
by: Jason James |
last post by:
Hi All,
I have created a class that references
MS Word. The class will happily control
Word, adding text, etc.
However, when I have finished with the VB
app I want to close the app, but not Word
so that user can continue on their own.
|
by: t.mitchell |
last post by:
Hi,
I have a python gtk app that allows users to have one project open at a
time. I have recently discovered that projects are not being freed
when they are closed - the refcount is not hitting zero. I have used
gc.get_referrers() to track down a few culprits, but I have now found
that some of my dialog boxes are staying alive after being closed too
(and keeping a reference to the project).
e.g.
gc.collect()
| |
by: Lenard Redwood |
last post by:
I'd like to create a simple chat application that will leave the
connection open for a minute and then restart the connection to the
server to push data. I plan to use temporary .txt files to store
messages. My question is how can I do that in PHP 5, what techniques
should I do server-side to keep this connection open and how would be
the flow of the message? Do I need a different technology such as
Python to handle messages?
1. User A...
|
by: ThomMCann |
last post by:
I have a problem with keeping a page alive while the server is writing large xml files to Oracle. The server time out is set to 15 minutes. I need a programmatic way to keep the jsp connection going for files that take longer. The web page displays errors and warnings that are found in the data validation process. The xml files are written to the server prior to inserting into Oracle. Sending an email back to the users with an error report...
|
by: ray |
last post by:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"/
<TITLE>HTML to Text Test Page</TITLE>
<SCRIPT type="text/javascript" src="test.js"/>
<SCRIPT type="text/javascript">
function onload(){
|
by: Cyprus106 |
last post by:
I'm using the Gps wrapper from the Windows Mobile 6 SDK Example. It's straightforward, and technically, all the code seems to work just fine. The problem is that it never picks up any values, satellites, nothing. It always returns 0s.
I tested outside with a Palm Treo 700 when I tested, and have waited for periods of up to 20 minutes, never getting any data returned (I was keeping the Gps alive, for those who know it automatically dies after...
|
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...
|
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,...
| |
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...
|
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |