Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Nov 2003
    Location
    Code Heaven
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    htaccess and PHP

    I'm kind of a begginer here,so,my question:
    Can I use a .htaccess file with PHP for authentification? (I mean,can I use PHP to manipulate the .htaccess file,or the passwd file ?)

  • #2
    Regular Coder dswimboy's Avatar
    Join Date
    Nov 2003
    Location
    mostly in Ann Arbor
    Posts
    458
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what do you "manipulate"? do you mean add users, and remove them, change passwords, and such. or have them login via PHP. the former is possible i think.


    the mod should move this to the PHP forum, in my opinion.
    "There is more than one way to do it."

  • #3
    Regular Coder
    Join Date
    Nov 2003
    Location
    Code Heaven
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [QUOTE=dswimboy]what do you "manipulate"? do you mean add users, and remove them, change passwords, and such. [QUOTE]

    That's what I mean.
    So,is it not possible with PHP ...?

  • #4
    Regular Coder dswimboy's Avatar
    Join Date
    Nov 2003
    Location
    mostly in Ann Arbor
    Posts
    458
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sure it is. former and latter. never mind. here is a link to a script that claims to manage htaccess and htpasswd fileshttp://www.hotscripts.com/Detailed/12030.html. if it doesn't, ask how to do it in the PHP forum.
    "There is more than one way to do it."

  • #5
    Regular Coder
    Join Date
    Nov 2003
    Location
    Code Heaven
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts
    K,got it,thanks.


  •  

    Posting Permissions

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