RE: [PHP] Re: download a pdf file
If the PDF file is publicly accessible via a web server, you should be able to simply do: header("Location: http://www.server.com/file.pdf";); -Original Message- From: kaab kaoutar [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 7:47 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Re: download a pdf file 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? > > >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] -- 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]
Re: [PHP] Re: download a pdf file
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? > > >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]
[PHP] Re: download a pdf file
Like this? 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]