digest authentication and PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Paul Oertel
Forum Newbie
Posts: 18
Joined: Fri May 31, 2002 3:44 am
Location: Japan

digest authentication and PHP

Post by Paul Oertel »

My site uses digest authentication for user logins. I want to make a web front end for users and administrators to change their passwords and manage users. Is there a way to use the system() function to send and receive data from htdigest. I am able to send a command to htdigest and get a result of 1 back but htdigest requires more user interaction. Can this be done with PHP?

Code: Select all

$command=""c:\\Program Files\\Apache Group\\Apache\bin\\htdigest" "c:\\Program Files\\Apache Group\\Apache\\conf\\passwd" ".$realm." ".$userid;
echo $command;
system($command, $result);
echo $result;
This sends the necessary command to htdigest a returns an exit code of 1 but no request for the user to change their passwd.

Thank you for your help in advance.
Post Reply