use the headers
header("Content-Length: ".filesize($filepath));
header("Content-type: application/octet-stream");
header("Content-disposition: $attachment filename={$newfile}");
header("Content-Transfer-Encoding: binary");
readfile($filepath);
bastien
From: "Adil" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP-DB] folder creation in php
Date: Tue, 12 Oct 2004 14:28:10 -0400
Here's what i'm trying to do in php and a mySQL database:
I want a button on a page that if clicked it launches the browser's or OS's
"Save As" window, allowing me to specify where to save my file and/or
create
a new folder
thx in advance
Adil..
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php