note 75299 added to ref.pdf

From: Date: Wed, 23 May 2007 00:58:20 +0000
Subject: note 75299 added to ref.pdf
Groups: php.notes 
Request: Send a blank email to php-notes+get-126832@lists.php.net to get a copy of this message
I was having a hard time streaming pdf to my browser till I discovered. The plugin looks at the extension for recognizion of a pdf file rather the the file header. I had apache with mod_rewrite on. for example: /doc/<name>/ was converted in /doc/foo.pdf The result was just a text print of the pdf file in the browser. the extension must be in the url (.pdf) for the plugin to load so: /doc/foo.pdf without mod_rewrite worked fine. Maybe it saves someone time :) ---- Server IP: 203.220.0.234 Probable Submitter: 125.238.213.18 ---- Manual Page -- http://www.php.net/manual/en/ref.pdf.php Edit -- https://master.php.net/note/edit/75299 Del: integrated -- https://master.php.net/note/delete/75299/integrated Del: useless -- https://master.php.net/note/delete/75299/useless Del: bad code -- https://master.php.net/note/delete/75299/bad+code Del: spam -- https://master.php.net/note/delete/75299/spam Del: non-english -- https://master.php.net/note/delete/75299/non-english Del: in docs -- https://master.php.net/note/delete/75299/in+docs Del: other reasons-- https://master.php.net/note/delete/75299 Reject -- https://master.php.net/note/reject/75299 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126832) next »