[PHP] php, pdf's and restricting access

2002-04-03 Thread Keith Posehn

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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php, pdf's and restricting access

2002-04-03 Thread Miguel Cruz

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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php