Location: PHPKode > scripts > PHP poppassd client > php-poppassd-client/example.php
<?php
/*
 *  PHP popassd client.
 *
 *  This class allow PHP communicate witha  PopPass server and changes the password
 *  of mail users.
 *
 *  The author disclaims the copyright over this class.
 *
 *  Cesar D. Rodas
 *  hide@address.com    
 */
include("poppassd.php");
$c = new poppassd("crodas","actual_password","new_password", "server.url.or.ip.com");
$err = $c->changePasswd();
if ($err != PASS_CHANGED){
    echo "Error: ".$c->errorMessage($err);
} else {
    echo "Password changed!";
}
?>
Return current item: PHP poppassd client