hello,


YoBro wrote:
> 
> Have you got an example of how to use the -b switch.
> I am not up with lingo when it comes to unix.
> 

<?php

/* try this */

if ($pressed)
{

        $result = passthru("htpasswd -b mypasswordlist $user $pass");

        echo "$result<br>\n";
}
else
{
?>

<form method=POST action="<? echo $PHP_SELF; ?>">
user: &nbsp;&nbsp; <input type=text name=user><br>
pass: &nbsp;&nbsp; <input type=password name=user><br>
<input type=submit name=pressed value=' GO '>
</form>


<?

}

?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to