ezmlm_hash

(csak PHP3 CVS, csak PHP4 CVS)

ezmlm_hash -- Calculate the hash value needed by EZMLM

Description

int ezmlm_hash (string addr)

ezmlm_hash() calculates the hash value needed when keeping EZMLM mailing lists in a MySQL database.

Példa 1. Calculating the hash and subscribing a user

  1 
  2 $user = "kris@koehntopp.de";
  3 $hash = ezmlm_hash ($user);
  4 $query = sprintf ("INSERT INTO sample VALUES (%s, '%s')", $hash, $user);
  5 $db->query($query); // using PHPLIB db interface
  6