Re: Not so relative but important...
| From: | Dobromir Velev | Date: | Fri, 14 Sep 2001 11:49:55 +0000 |
| Subject: | Re: Not so relative but important... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-12445@lists.php.net to get a copy of this message | ||
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 <k.koutsogiannopoulos@ideal.gr>
To: 'Php-Db (E-mail) <php-db@lists.php.net>
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?
>