Hi,
try
<? 
$fp = fopen("file.doc","r"); 
Header("Content-Type: application/x-octet-stream"); 
Header( "Content-Disposition: attachment; filename=file.doc"); 
passthru($fp);
?> 

HTH
Dobromir Velev


-----Original Message-----
From: Koutsogiannopoulos Karolos <[EMAIL PROTECTED]>
To: 'Php-Db (E-mail) <[EMAIL PROTECTED]>
Date: Friday, September 14, 2001 1:44 PM
Subject: [PHP-DB] Not so relative but important...


>Hello everyone...
>
>This is not a very relative question to DB and php but would mean a lot if
>someone helped me out..
>
>It involves html headers...
>
>What i want to do is when i have a pdf or doc file ... using a special
>header, when clicking the file
>the page to download the file and not opening it as usual..
>Is tha possible???
>
>Can someone help me out?
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to