Hi,
I have the same problem going on. I have tried IE on Windows 98, 2000
and Netscape on Linux, 98 without any difference. I can't check it
because using https and sessions, but can anyone try to use wget with
the -s option to see what is going on the headers? Also might be useful
to see what PHP are u running.
Mine PHP4.0.3pl1 on Linux+Apache
Sean C. McCarthy
SCI, S.L. (www.sci-spain.com)
PS: I know I should upgrade when having funny problems, but actually we
are almost finishing a project a we cant stop to recompile and
reinstall.
Matthew Loff wrote:
>
> Are you using Internet Explorer? I've found that broken installations
> of Acrobat will cause that... Try reinstalling acrobat on your computer,
> and also try using Netscape... See if they work.
>
> --Matt
>
> -----Original Message-----
> From: George Pitcher [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 10:01 AM
> To: Brad S. Jackson
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Accessing pdf file thru php
>
> Brad,
>
> Thanks for that pointer.
>
> However, with that implemented, all I get is the PDF coding dumped onto
> the screen - no pdf file downloaded!
>
> Any further suggestions. I feel as though I'm getting there . . .
> slowly.
>
> George
>
> ----- Original Message -----
> From: "Brad S. Jackson" <[EMAIL PROTECTED]>
> To: "George Pitcher" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 12, 2001 2:52 PM
> Subject: Re: [PHP] Accessing pdf file thru php
>
> >
> >
> > You should call header() for each header line. And you should only
> > send
> one
> > content type header.
> >
> > header("Content-type: application/pdf");
> > header("Content-Disposition: inline;
> filename=D:\\Pdf\\0226138097(57-77).pdf");
> > header("Content-Length: $len");
> >
> >
> > "George Pitcher" <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I'm trying to build php into an existing solution which uses Lasso.
> >
> > I have tested the passing of data from Lasso to php and that works
> > fine.
> >
> > I want Lasso to pass the filename over to a php page and for that page
>
> > to grab the file from a folder outside of the webroot and push it out
> > to the user, at the same time as presenting them with a confirmation
> > form so that downloading can be confirmed.
> >
> > I have tried the following code without any good results:
> >
> > <?php
> > $filename="D:\\Pdf\\0226138097(57-77).pdf";
> > $len = filesize($filename);
> > $header="
> > Content-type: application/pdf
> > Content-type: application/x-octet-stream
> > Content-Disposition: inline; filename=D:\\Pdf\\0226138097(57-77).pdf
> > Content-Length: $len";
> > header=($header);
> > readfile($filename);
> > ?>
> >
> > I get a parse error on the line that calls the header.
> >
> > Can anyone help me with this please?
> >
> > Regards
> >
> > George Pitcher
> >
> > Technical Manager
> > HERON Project
> > Napier University
> > Edinburgh EH10 5DT
> >
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> >
> > http://www.heron.ac.uk
> > ================================================
> > programmer - A device for transmuting caffeine into code.
> > ================================================
> >
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> 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]
--
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]