Re: Click....download and update

From: Date: Fri, 20 Sep 2002 11:00:49 +0000
Subject: Re: Click....download and update
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116989@lists.php.net to get a copy of this message
The Content-Type header changes, when uploading, you can get it from $HTTP_POST_FILES['userfile']['type'], also set the filename using header("Content-Disposition: attachment; filename='. $filename ); Christian Ista wrote:
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"); ?>
It's not only .zip file but may be .exe or .rar That's change something in your code ? I can put the code to update a database field in the downloadmyfile.php ? Bye


« previous php.general (#116989) next »