Maybe ?!
I tried it
it gives me an error in that line
header("Content-Disposition: filename=\"$file\"");
But how when i click on  a button, the dialog box for downloading appear?
Thanks

>From: "Fredrik Arild Takle" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] Re: download a pdf file
>Date: Thu, 26 Jul 2001 13:35:38 +0200
>
>Like this?
>
><?php
>
>header("Content-Type: application/download\n");
>header("Content-Disposition: filename=\"$file\"");
>$fn = fopen("$file" , "r");
>fpassthru($fn);
>
>?>
>
>Best Regards
>Fredrik A. Takle
>Bergen, Norway
>
>"Kaab Kaoutar" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi
> > I looked in the php manual for how to download a file
> > bbut in vain.
> > Thanks
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at 
>http://explorer.msn.com/intl.asp
> >
>
>
>
>--
>PHP General 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]
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General 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