Kiwi
12-09-2002, 10:37 AM
I'm working on a little php/mysql cms and I want to add a simple user/password to one section of pages (a single user name/pwd is fine for now). I have an engine.php application in the root directory. This takes a page reference from the url, finds the names of the relevant files from mysql, then combines these files and delivers them to the client. Each sections has it's own content directory, and the engine includes the content from the relevant directory.
I was hoping to use .htaccess for the content directory, but obviously php bypasses this security. So I need a new idea.
The simplest idea is to replicate the engine in a secure directory, but this seems to be an in-efficient solution.
Any more elgant suggestions? -- given that the question is fairly vague, links or references on securing pages in php would be useful.
I was hoping to use .htaccess for the content directory, but obviously php bypasses this security. So I need a new idea.
The simplest idea is to replicate the engine in a secure directory, but this seems to be an in-efficient solution.
Any more elgant suggestions? -- given that the question is fairly vague, links or references on securing pages in php would be useful.