php-db | 2001072
Date: 07/24/01
- Next message: alvin townsend: "[PHP-DB] mysql and oracle outer join syntax"
- Previous message: Chris Hobbs: "Re: [PHP-DB] Dynamic Links"
- In reply to: Samuel Torton: "[PHP-DB] 'htaccess" method : how to modify passwords from PHP scripts ?"
- Next in thread: Caleb Walker: "Re: [PHP-DB] 'htaccess" method : how to modify passwords from PHP scripts ?"
- Reply: Caleb Walker: "Re: [PHP-DB] 'htaccess" method : how to modify passwords from PHP scripts ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
There is a fantastic class that takes care of writing .ht* files... look
here:
http://phpclasses.upperdesign.com/
-----Original Message-----
From: Samuel Torton [mailto:samuel <email protected>]
Sent: Tuesday, July 24, 2001 6:40 AM
To: php-db <email protected>
Subject: [PHP-DB] 'htaccess" method : how to modify passwords from PHP
scripts ?
Hi all,
I use a Linux platform, Apache, and PHP4.
I use "htaccess" method in order to have restricted accesses, and I
handle my users via a PHP interface.
- when I want to create a new user, I generate a string such as
"username:cryptedpassword", and I insert it at the end of my ".htpasswd"
file.
- when I want to modify the password of an existing user, how to do that ?
--> 1/ delete the line corresponding to this user, and then insert the new
"username:cryptedpassword" line ? in this case, can you tell me which
funtions
to use (find a line in an ascii file, delete it, and insert the new one) ?
--> 2/ run a command line such as "htpasswd ..." (without "-c" argument) ?
in
this case, can you tell me how to run a unix command line from a PHP script
?
Thanks a lot in advance.
Regards,
-- Samuel Torton NCSLab.com-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: alvin townsend: "[PHP-DB] mysql and oracle outer join syntax"
- Previous message: Chris Hobbs: "Re: [PHP-DB] Dynamic Links"
- In reply to: Samuel Torton: "[PHP-DB] 'htaccess" method : how to modify passwords from PHP scripts ?"
- Next in thread: Caleb Walker: "Re: [PHP-DB] 'htaccess" method : how to modify passwords from PHP scripts ?"
- Reply: Caleb Walker: "Re: [PHP-DB] 'htaccess" method : how to modify passwords from PHP scripts ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

