any other scripts that allow me to password an admin directory on my site??
i am using .htaccess but was wondering if there was anyway i can intergrate a simple users login script into mine.
anyone know of any?![]()
| SitePoint Sponsor |
any other scripts that allow me to password an admin directory on my site??
i am using .htaccess but was wondering if there was anyway i can intergrate a simple users login script into mine.
anyone know of any?![]()
i suppose you could create a login page, and make sure the user is logged in (check $_SESSION) for every page within the folder. It sure would be alot easier to just stick to .htaccess or use this method instead:
http://httpd.apache.org/docs-2.0/howto/auth.html
I use the above link's method for my site and it works perfectly. No .htaccess files. I just add a block of code for each folder i want protected and tell it which users i want to access it. The code goes in the httpd.conf file. You also have a to make a passwords file using htpasswd


Sitepoint's Auth Class Tutorial by Harry Fuecks
This tutorial is simple, get's your feet wet with OOP in PHP, and works great.
Cheers
Ducharme's Axiom: "If you view your problem closely
enough, you will recognize yourself as part of the problem."
Bookmarks