You will have to set your header information prior to using readfile.
http://us2.php.net/manual/en/function.readfile.php
You will need to set your header information prior to using readfile.
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Tom Deskevich
Sent: Tuesday, February 02, 2010 12:15 PM
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] WEB400 Digest, Vol 8, Issue 55
View a PDF document from IFS using PHP with ZEND
Actually, readfile() will take an absolute path. You can use it to read
in a file anywhere in the IFS.
Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi
Young i Professionals
http://www.youngiprofessionals.com
I originally had readfile() in my php and it did find it and read the file...BUT...
%PDF-1.3 zG_ÃÃÃJÂÂÂ#s6ÂdR Lâs 1 0 obj << /Type /Catalog /Pages 3 0 R /OpenAction [0 /XYZ 0 32767 1.0000000] /Outlines 2 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [ 5 0 R ] /Count 1 >> endobj 4 0 obj [/PDF /Text] endobj 5 0 obj << /Type /Page /Parent 3 0 R /Resources << /Font << /Fcpdf0 7 0 R >> /ProcSet 4 0 R >> /MediaBox [0 0 950 792] /CropBox [0 0 950 792] /Rotate 0 /Contents 6 0 R >> endobj 6 0 obj << /Length 418 /Filter [/FlateDecode] >> stream xÅÃâMoâ@âÃÃÅÂUÃ.Eâ,-â"[{ÃBdÂÃXÃÂÃÃÂÃÂÃÂÃzÃ,Ã.dâÃaÃââÃË Ãâ+w]CÃ.&ÂÂ{4âPÃÂÃ7ÃâÃÃÃâÃâ$;âyÅpÂ6ÃIÂÂqÂZ;[zÂÂÃÅJ |ÃâÅÂ(#ÂDÂÃ3_fÃJv=Ã7}Ã#ËÂâO ÃMÂÃoÃtÃÃÂÃa ÂUÂWÂ`IrSâÅ$lBÃÃÃâlÂâ`ÃÂÃÅ
ÃXâÃ(OUÂxfTPÃÃ6`ÃÃ[ËÂA @CÃO5Ã%ÃÂâO.y7FàÃbâÂà ÃÃ}ÂÂââÃf4âÃaâ&cÆ_âQk=aÃÃ~ ÃÂË|ctâpÂÅÃÅÃN :`Â#hÃ"ÂvTÂ"ÃÃâ
YââÃÃââ0`%âFYYÃXÃÃ'@SÃvz%âAÃÃËÃ8" ÂZÃÂ-ÂAXÂc{VÃ#" tÃOâÅââÂ$ÂÃsÂ,xÃÃÃÂ(âÃEÂRÃ+HÂvRÂ$/ÂYÂoÃÃÃÃÃÃÃA endstream endobj 7 0 obj << /Type /Font /Subtype /Type1 /Name /Fcpdf0 /BaseFont /Courier /Encoding /WinAnsiEncoding >> endobj 8 0 obj << /Creator (IBM afp2pdf Transform Version: 1.4.0.8) /CreationDate (D:20100202131318) /Producer ([ClibPDF Library 2.02-r1-2] 1.4.0.8 AIX) /Author (User: [nobody]) /Title (No Title) /Subject (No Subject) /Keywords (None) >> endobj xref 0 9 0000000000 65535 f 0000000033 00000 n 0000000137 00000 n 0000000183 00000 n 0000000242 00000 n 0000000270 00000 n 0000000448 00000 n 0000000940 00000 n 0000001049 00000 n trailer << /Size 9 /Root 1 0 R /Info 8 0 R >> startxref 1288 %%EOF
It looks like this in the web browser.
As an Amazon Associate we earn from qualifying purchases.