Hi Marian,
After doing some checking on the password, couldn't you just use:
<?php
$username = "bob";
$password = "abc123";

$password = crypt(trim($password), base64_encode(CRYPT_STD_DES));
$fp = fopen('.htpasswd', 'a');
fwrite($fp, "$username:$password\r\n");
fclose($fp)
?>

But, putting the pw file above root.
Regards, Bob Exton.


----- Original Message ----- 
From: "Marian Briones"
> Yes, I know what goes in it...I used to have a perl script that did
> what I am trying to do, but I have long since abandoned perl in favor
> of php.  Need to change my license plate which still refers to perl <g>



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-list/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to