note 65987 modified in function.exec by danbrown
| From: | danbrown@php.net | Date: | Sun, 04 Jan 2009 16:25:17 +0000 |
| Subject: | note 65987 modified in function.exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-148800@lists.php.net to get a copy of this message | ||
If you need generate new data .htpasswd file:
<?php
$command="htpasswd -nb ".$login."".$password;
exec($command,$res);
echo $res[0];
?>
Luck!!!!!!!
--was--
If you need generate new data .htpasswd file:
$command="htpasswd -nb ".$login."".$password;
exec($command,$res);
echo $res[0];
Luck!!!!!!!
http://php.net/manual/en/function.exec.php