Re: Updating a table after a successful download

From: Date: Wed, 30 Jul 2003 13:17:45 +0000
Subject: Re: Updating a table after a successful download
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157517@lists.php.net to get a copy of this message
Hello, This is a reply to an e-mail that you wrote on Wed, 30 Jul 2003 at 13:46, lines prefixed by '>' were originally written by you. > The problem I am having is that when the download is canceled by the > user > the document still shows up as being checked out. Is there a way to > know if > the document has been successfully downloaded before I update the > database. The connection handling section of the manual may help you... http://uk.php.net/manual/en/features.connection-handling.php You could possibly use register_shutdown_function() and connection_aborted() to set the status back if the connection was cancelled. David. -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/ (developed entirely in PHP)

« previous php.general (#157517) next »