Before sending the file, send the typical HTTP header information: Content-Disposition: attachment; filename=Fubar.txt. And the content type info: text/plain or whatever format that is suitable.....
You can check www.w3.org for more details on exactly what you need in the header. Doing that should bring up an file download dialog box for the end user. >-----Original Message----- >From: Sandeep Murphy [mailto:[EMAIL PROTECTED]] >Sent: Thursday, February 21, 2002 6:22 PM >To: [EMAIL PROTECTED] >Subject: [PHP-WIN] local drive > > >hi, > >I have a document (BLOB type) in a database which I hv >retrieved thru an sql >query... > >I need to allow the user to save this document to his local >hard drive upon >clicking a button... > >any ideas as to how I can achieve this??? > >TIA, > >sands > >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php