PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
remove the .htaccess file, place code in all scripts such that when a "new" user will be required to enter username and password. This is most often done with sessions and marking a user as logged in.
I don't believe that's possible the way you have detailed.
You can place the actual folder outside the browsable space and use a script to pass the files to a client, or redirect all requests through a page (mod_rewrite) ...