I just started using PHP.. well... yesterday. I took the painful task of going the route of Apache2 with PHP and MySQL on WinXP and hand installing everything to learn it... In any case I have a basic self-maintaining website for news updates right now with the database accessable by myself via phpMyAdmin.
However I wanted to know how complex or feasible the following ideas would be - and perhaps get an idea of what you guys might think the best route to take is on this. I'm not new to programming so I've just been diving right in and trying everything PHP and MySQL will let me do.
The site I am creating will not have any users logging into it (for now), but I will have the administrators log in from any location in order to update news, reviews, or other topics we include. Would it be simple enough to write an interface with PHP to have them log-in by a direct URL that I give them and authenticate themselves with the database - THEN - upon doing so have the code check their privelages to determine what they can do?
I will be hosting this site myself eventually and have everything locked down/secure except perhaps the correct authentication method. Using PHP and abiding by the manual and the config file, I am using http authentication - which to me doesn't seem secure enough as I know that is attacked often. Albeit the login URL will only be known by the administrators of the site - it still doesn't seem secure enough to me - looking for any suggestions there...
Anyway.. back to the site itself. I use the term "Interface" loosely in the subject. I want each administrator of the site to go to this given URL, log in, and after doing so a page appears with their tools....if say.. they have privelages to update the News or Reviews sections - they would simply have to click on one or the other and a page would come up with forms requesting their input for either section. I might write this somewhat slack and not do actual privelage checks - but rather when their user is checked have a specific database file sent to the screen with "their" tools. Meaning each admin could theoretically modify any other section if I simply changed their tool screen and not bothering with their access to each area specifically.
I am in the process of writing an algorithm to handle the length of sections (again.. News for example) in order to pass old news into an archived database for storage and maintainace of the main page. This way any administrator can just log in - update the news - and if for example... there were 5 news listings - the oldest one will be removed from the news database and passed. I think I can handle that easy enough... but again - any suggestions are more than welcome since I am still learning how to manipulate the database well within PHP.
So.. does this sound like a possibility? Being that I am new with PHP & MySQL? lol 🙂 I have only been using the manuals - so saying RTFM won't do me any good - if its in there I'm simply not finding it and could use some assistance. Hopefully somebody can give me some insight.
Thanks!
~Breezer