Why is this not working
| From: | YoBro | Date: | Thu, 17 May 2001 21:21:39 +0000 |
| Subject: | Why is this not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53317@lists.php.net to get a copy of this message | ||
After much investigation through many newsgroups and websites, I found out
that this is the way you can execute a unix apache command to add a user to
the htpasswd list with PHP.
Problem is, it doesn't add any information to the htpasswd file.
Note: The example below is...
domain = my user name
abc = user name to add to htpasswd list
pass = password to add to htpasswd list
<?php
passthru ("htpasswd -b /users/domain/.htpasswd abc pass");
?>
Please Help if you can.
Cheers,
YoBro