function hmac ($key, $data) { return (bin2hex (mhash(MHASH_MD5, $data, $key))); }
when I use this in a script...is says that mhash is not a recognizeable function. Isn't is standard on php, or do I have to install something?
You need to compile PHP with the --with-mhash[=DIR] parameter to enable this extension.