Guest lisatwin1 Posted February 3, 2009 Report Share Posted February 3, 2009 Hello everyone, I am still learning PHP, which will probably take forever, lol. Sorry, but I have to keep the details of what and for whom I am doing this vague... I have created a big form, that when submitted, writes a copy of the form (using the date and time to name it) to a folder (as a web page). An e-mail is then sent to the recipient with a link to the file and a message stating there is a new file; and this is all secured on an SSL site. All that works fine, what I would like to do is have the folder that all these files are going into be password protected so that only the authenticated users can view it. The easiest way, of course, is .htaccess. How do I tell PHP to login to an .htaccess folder, so that it can write its data? Also, if anyone can think of an easier and/or more secure way to password protect these files, I am up to suggestions. I want to thank everyone in advance for their help. Lisa Quote Link to comment Share on other sites More sharing options...
InsiteFX Posted August 15, 2009 Report Share Posted August 15, 2009 Hi lisatwin1, It's not .htaccess its .htpasswd Read this: http://www.colostate.edu/~ric/htpass.html Enjoy InsiteFX 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.
Note: Your post will require moderator approval before it will be visible.