cfgcjm Posted March 18, 2008 Share Posted March 18, 2008 Hi everyone, I'm not sure at all how to do this so i figured I'd ask...I have a portal that is secured using php. The organization whose website it is sends out a newsletter to it's members and wants to make it available in the portal. It is currently a pdf. Is there a way to secure a pdf so that a user must be logged in to view it? The pdf would always just be sitting on the server so i don't know how to do this. Unless someone has an easy way of doing it, converting to HTML is not an option. There is far too much formatting in the document. Thanks for your help! Quote Link to comment Share on other sites More sharing options...
trq Posted March 18, 2008 Share Posted March 18, 2008 You need to place the pdf's within a directory either outside of the web root, or locked down via .htaccess. You can then use a php script to serv up the pdf's to logged in users. Theres a force download script in the FAQ/Code Snippet.. board that should get you started. Quote Link to comment Share on other sites More sharing options...
cfgcjm Posted March 18, 2008 Author Share Posted March 18, 2008 thanks! i'll take a look Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.