RE: [PHP] Viewing pdfs with PHP

From: Date: Mon, 08 Jan 2001 13:21:12 +0000
Subject: RE: [PHP] Viewing pdfs with PHP
Groups: php.general 
Request: Send a blank email to php-general+get-33219@lists.php.net to get a copy of this message
I think you're looking for header rather than include... header("Location: http://www.site.com/dir/document.pdf"); Also look at http://www.php.net/header for the caveats. Ollie cc. php-general > -----Original Message----- > From: Sam [mailto:Sam@dragoman.co.uk] > Sent: 08 January 2001 13:44 > To: Cook, O : (CWM) > Cc: 'php-general@lists.php.net' > Subject: RE: [PHP] Viewing pdfs with PHP > > > its opening the pdf thats the problem, > as I'm using the code > include("URL"); > > and its returning an error > > Warning: Failed opening "URL" for inclusion (include_path='') in > C:\Inetpub\wwwroot\cgi-bin\pdfs.php on line 5 > > > I didn't know if this is the right code to be using? > > > -----Original Message----- > From: o.cook@etoncollege.org.uk [mailto:o.cook@etoncollege.org.uk] > Sent: 08 January 2001 13:10 > To: Sam@dragoman.co.uk > Cc: php-general@lists.php.net > Subject: RE: [PHP] Viewing pdfs with PHP > > > I'm uncertain of what you want to achieve. I can think of two > possibilities. > > 1) You want to parse a PDF and return some info as HTML > > - I think the PDF libs would make this possible > > 2) You want to show a PDF in the browser > > - This isn't really a PHP issue, all that is necessary > is for the client to have Adobe Acrobat Reader installed > and for you to redirect the browser to the relevant PDF. > > Ollie > > > -----Original Message----- > > From: Sam [mailto:Sam@dragoman.co.uk] > > Sent: 08 January 2001 13:03 > > To: 'php-general@lists.php.net' > > Subject: [PHP] Viewing pdfs with PHP > > > > > > Hi, > > > > I was wondering how you can view documents like pdf's via > > php. As I have a > > script that does a couple of tests and then needs to open the > > relevant pdf. > > Is this possible? > > > > Thanks in advance > > Sam > > ______________________________________________________________ > > ______________ > > ________________________________________________________________ > > > > The information in this email and in any attachments is > > confidential and may > > be privileged. If you are not the intended recipient, please > > destroy this > > message, delete any copies held on your systems and notify > the sender > > immediately. You should not retain, copy or use this email > > for any purpose, > > nor disclose all or any part of its content to any other person. > > > > > > >

« previous php.general (#33219) next »