How can I set up a protection on certain folders so that it pops up a window asking for un/pw etc, like .htaccess files do, but allow PHP to include files that are in the directory without having it ask the user for the un/pw, which I don't want them to know...
I tried just normal un/pw .htaccess files but for PHP to include them it had to have a password. Is there some way to deny all access to unauthorized users, but to allow PHP to get in? Or some way to have PHP give the un/pw to the server? Now that I think this over, I think it might be possible the first way for people on different servers to use PHP to import those files, but I might be mistaken. Any help?
EDIT: I have another question. How do I create .htaccess files in Windows so I can upload them to my server? It always says I can't create them because there is no filename for the extension...