Re: Click....download and update

From: Date: Thu, 19 Sep 2002 20:03:08 +0000
Subject: Re: Click....download and update
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116930@lists.php.net to get a copy of this message
Christian, You'll need to prompt the download by sending the appropriate headers. Something like.. <a href=http://www.mydomain.com/downloadmyfile.php>Download</a> <? // downloadmyfile.php header("Content-Type: application/zip"); header("Content-Disposition: attachment"); readfile("file.zip"); ?> This is untested but from my experience it should work. Good luck, Kevin ----- Original Message ----- From: "Christian Ista" <Christian.ista@teledisnet.be> To: <php-general@lists.php.net> Sent: Thursday, September 19, 2002 1:21 PM Subject: [PHP] Click....download and update > Hello, > > I'd like when I click on a link <a > href=http://www.website.com/file.zip> > update a table and start the download without change the page. > > Could you tell me how to do ? > > Christian, > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#116930) next »