Re: php, pdf's and restricting access
| From: | Miguel Cruz | Date: | Thu, 04 Apr 2002 01:01:41 +0000 |
| Subject: | Re: php, pdf's and restricting access | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91448@lists.php.net to get a copy of this message | ||
On Wed, 3 Apr 2002, Keith Posehn wrote:
> Ok, here's my question:
>
> I have a set of pdf files that I am selling. I want the users of my site,
> when they buy the files to be able to only view them if they are acquired,
> so I need to restrict access to them. Could I set the permissions on them so
> they are not publicly viewable, and then make a php page that would actually
> view the files as a specific user? Is there some way to include a pdf file
> in the page?
http://php.net/header
http://php.net/readfile
miguel