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!
I'm not sure how you'd go about it with your setup, but my webhost (like many webhosts) uses CPanel which has a menu item called "Password-Protect Directories." If you have CPanel, you can go there and password protect them from there.
Josh1billion wrote:I'm not sure how you'd go about it with your setup, but my webhost (like many webhosts) uses CPanel which has a menu item called "Password-Protect Directories." If you have CPanel, you can go there and password protect them from there.
I have not got any gui interface to my webserver I need to setup everythig manually in text mode.
PHP can return Basic HTTP Authentication headers which will request a username and password (like you are asking about). Look in the documentation for header().