Re: PHP/Mysql: Making binary field available for download - extra browser window ?

From: Date: Mon, 05 Jun 2006 18:08:47 +0000
Subject: Re: PHP/Mysql: Making binary field available for download - extra browser window ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-237426@lists.php.net to get a copy of this message
On Fri, June 2, 2006 12:59 am, Matthew Pegg wrote: > Working on a PHP script at the moment where I want to be able to > extract a file (PDF file) from a mysql database\ That's bad. Read the archives. > and force the popup > of the File Download dialog, to allow the user to either save or open > the document (ie. and bypass loading the file using the browser's > plugin) <?php header("Content-type: application/octet-stream"); echo $pdf; ?> Any browser that does't do a download prompt for that is severely broken. Forget the content-disposition crap. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#237426) next »