Re: aborting script

From: Date: Thu, 10 Apr 2003 15:08:49 +0000
Subject: Re: aborting script
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-143351@lists.php.net to get a copy of this message
> > I have the following situation. We have Apache running with the php > > module. We present to the user of our system a page with a number of > > links. A link will connect to our database, select a number of records > > and present this to the user. Some select may take quite a while before > > they are finished. Sometimes the user in inpatient and presses the link > > again which means anther connection to our database is setup while the > > other is still running ( it means the odbc_fetch is still executing ). Is > > there a wat to get a handle to the client so I can check it is still > > alive. Or to abort the script (and related resources ) when the link is > > requested again ? Or are there other possibilities I am missing ? How about passing the click to a "wrapper" script which just says, "Now Processing" or has a nice animated GIF on it :) which then returns your ODBC select stuff..this doesn't allow the user to click on anything else? -- Henrik Hudson lists@rhavenn.net "`If there's anything more important than my ego around, I want it caught and shot now.'" --Hitchhikers Guide to the Galaxy

« previous php.general (#143351) next »