php, pdf's and restricting access

From: Date: Thu, 04 Apr 2002 00:56:45 +0000
Subject: php, pdf's and restricting access
Groups: php.general 
Request: Send a blank email to php-general+get-91447@lists.php.net to get a copy of this message
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? Any ideas appreciated. Keith Posehn

« previous php.general (#91447) next »