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 8394709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:07:40+00:00 2026-06-09T20:07:40+00:00

Hi I am totally new to php (I literally know nothing about it) but

  • 0

Hi I am totally new to php (I literally know nothing about it) but am an intermediate-to-advanced programmer, and need to password protect a folder or otherwise individual files on the server for members to access of a non-profit I run. My server provider just installed php on his server for me (he doesn’t have Apache) but told me I have to do all the programming work as he is unfamiliar with it.

1) please recommend any good sources for me to obtain sample scripts and directions on how to implement

2) or please kindly provide step-by-step “guide” on what must be done to protect a folder or file on my server. I want to have either a pop-up window or other means for a limited number of members to enter their chosen username & password.
Most files would be a web page, but some could be downloadable pdf.

Everything I have found here has been little snippets of code, that doesn’t explain the Big Pitcure of the php process.

Sorry if my question is confusing to some or not enough info. Thank you for your comments though.

Please understand that I am not the server owner, I am just an individual who has my website on this server space with FTP access to it. I think the guy said it is Microsoft based if that makes sense? and he added php to it for me as I thought that might help, since he doesn’t have Apache which would have been the ideal from what I’ve read.
I don’t think that the guy wants to be bothered with adding/removing users & their passwords as members join or leave. the idea is for me to have that control and ability.

If there is some other way besides php ?

@jerrygarciuh ‘s suggestion seems way more involved than I am capable of implementing!
😉

  • 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-06-09T20:07:41+00:00Added an answer on June 9, 2026 at 8:07 pm

    The problem exists that you cannot directly use a PHP script to check a session or anything before loading a pdf.

    Quick note is to never depend on obscurity either. So an answer like putting the files into a database and randomly changing them isn’t a great idea.

    What you need is to prevent them from entering the page, which means the only plausible way to do this is through a configuration file, like web.config (if IIS) or placing a file above the document root . However, we really need more information on this.

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

Sidebar

Related Questions

I know PHP a little. But Python is totally new for me. I only
I am totally new to Flex mobile developing. In FlashBuilder for PHP, you need
I'm totally new to PHP and MySQL but I'm implementing the Facebook PHP SDK
I'm a PHP Programmer, and totally new to C#. I have downloaded the Html
I am not totally new to PHP or XML but I am 100% new
First off, I am totally new to PHP, but so far i love the
I'm totally new to ajax, but pretty good with PHP. I have a PHP
having same issue, i am totally new in php. i install XAMPP then download
Im totally new to regex. I need your help. What is the regex function
I'm totally new to Ruby but not to programming. All I did was going

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.