Need help with directory control

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!

Moderator: General Moderators

Post Reply
SGC
Forum Newbie
Posts: 4
Joined: Sun Nov 21, 2010 8:29 pm

Need help with directory control

Post by SGC »

I would like to provide access to an htaccess/htpasswd write/read/browse protected directory AND an SQL (mysql) database WITHOUT the htaccess popup. Obviously, I can do this with an htpaccess prompt and re-use/generate credentials to gain access to the database, but I would prefer the other way around so I can embed the login.

Alternatively, a secure method (non htaccess) of preventing URL hacks for ALL sub-directory files would work.

PLEASE NOTE: I'm not looking to protect the pages in the directory (this is easy enough) I'm looking to protect EVERYTHING (specifically, against URL hacks) in the directory.


A pointer to the general direction of a solution/idea-for-a-solution would be greatly appreciated. (Pseudo) code would be great too.
Post Reply