Jump to content

PHP and .htaccess


Guest lisatwin1

Recommended Posts

Guest lisatwin1

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

Link to comment
Share on other sites

  • 6 months later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...