SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2004
    Location
    Midlands, UK
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    password directory

    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?

  2. #2
    PHP Otaku Gibb's Avatar
    Join Date
    Jul 2004
    Location
    Texas
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  3. #3

  4. #4
    I want my 4th arrow! garlinto's Avatar
    Join Date
    Jun 2002
    Location
    Riding the electron wave
    Posts
    372
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •