Re: aborting script

From: Date: Thu, 10 Apr 2003 14:21:05 +0000
Subject: Re: aborting script
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-143337@lists.php.net to get a copy of this message
Hmmmm. You could use a "only-click-once" script like this: <? session_start(); if(isset($_SESSION["clicked"][$url])) { echo "You already clicked that one!!!"; } else { $_SESSION["clicked"][$url] = true; Header("Location: $url"); } ?> link to the odbc-resultpage through this script, and do not forget to clear the session variable on finish. Erwin Marco Laponder wrote:
I did that ( of course ). So I am not smart enough or I am overlooking some things. I cannot use the connection_status as the script is still in the uodbc_fetch call (which might take about 30 seconds ), so the first chance I get is after odbc_fetch call, but I would like to stop the odbc_fetch call when the user reclicked the link or clicked the stop button. Marco "Erwin Kerk" <erwin@scoutingnederland.nl> schreef in bericht news:3E9577FA.9060001@scoutingnederland.nl...
See Chapter 21. Connection handling in the PHP manual Erwin


« previous php.general (#143337) next »