Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7679573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:54:32+00:00 2026-05-31T17:54:32+00:00

I am creating an application form, here is what it does. The php script

  • 0

I am creating an application form, here is what it does.

The php script takes the form information and writes a file named usr_firstname_lastname.txt

The directory is password protected using .htaccess and .thpasswd

.htaccess

# DO NOT REMOVE THIS LINE AND THE LINES BELOW PWPROTECTID:******
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /home/a9368227/public_html/applications/.htpasswd
Require user *****
# DO NOT REMOVE THIS LINE AND THE LINES ABOVE ******:PWPROTECTID

.htpasswd

*****:*********************************/

The ‘*’ are obviously to prevent peope obtaining login info, however this is just to tell you what the the format is.

Now the point of password protecting the directory is so that only people with the password can see it, however I want it to be accessable. The only answers I can find on this are chmodding the directory to 711, I want everyone to be able to read the files, just need a password first, I don’t want to block them.

I do not want to change the directory, I want all applications to be easily accessable by typing/applications at the end of the domain and entering a name. And for my purposes the directory must be password protected and chmodded to 755.

I’d think there would be a simpe answer on how to like pass a password and username to the directory, can anyone help?

If there is no way, I should be able to make a simple PHP script that asks for username and password and then lists the applications below, but I’d rather not…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:54:33+00:00Added an answer on May 31, 2026 at 5:54 pm

    The .htaccess and .htpasswd file control access from the Internet directly to the directory. The chmod permissions control access from your PHP file to that directory in the filesystem. The two are not related. You can chmod it to 755 so that your PHP script can access it, and still put password protection on the directory if it is accessed directly from the Internet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are creating a Windows Form application (C# or VB.NET) that needs to reference
I am creating a .NET form application in Visual Studio 9. In the designer
Case : I'm creating an application (desktop application) with VB.NET (actually windows form), and
I'm using WPF for creating my application, I am calling a windows form using
So within my application is a form for creating a new user, with relevant
I am creating a small modal form that is used in Winforms application. It
I'm creating a simple contact form within my ZF application. It doesn't feel like
I am creating a form where a user will register with a struts2 application.
I am creating a web application using Form Authentication of Asp.Net with C# and
So here is what I have: a PDF form (job application) that a client

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.