hello people,
Let me give you a small explanation of what's going on and the problem I have.
I have a news site which is administered over the web. Now basic functions of an administrator are to create a file, remove a file, modify a file, create or delete a directory, rename. The users of these web site read these files.
Problem: I have managed quite a decent loggin and authentication using session variables, so I have no fear of someone who is not meant to successfully login in. But the problem is this, I have set the directories under which admin work to a mode of 757, this gives full access to the public. Now what I need to do is to allow administrators to do whatever they want with the directory tree, and I want to allow users to only read the stuff that is in there.
Someone told me about usin htaccess to log in, I am using a mySql database.
Question: How can I do what I said above? How can I link the mysql data, htaccess in order to so? Are there any other ways of doing so?
Thank you all who read this in advance,
Fotis