Re: Read a PDF File using php

From: Date: Wed, 01 Oct 2003 20:05:36 +0000
Subject: Re: Read a PDF File using php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164617@lists.php.net to get a copy of this message
Are you sending a Content-Type header to the browser to let it know what type of file you are sending it? On Wed, 2003-10-01 at 12:27, Pushpinder Singh Garcha wrote: > Hello All > > I need to allow a user to access a PDF file, only if he/she is logged > in as a registered user. So here is the code that I am trying to use. I > have been able to make this work in the past, when I had to read .html > file, now since the file in question is a .pdf file, I am having > trouble. The browser shows a long list of weird characters instead of > the pdf file > > > if(session_is_registered("user_valid")){ > > $filepath ="docs/any_file.pdf"; -- Tyler Lane <tlane@lyrical.net> Lyrical Communications

« previous php.general (#164617) next »