Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
The script exits when it comes across this line of code: $hash = mhash(MHASH_MD5, $data);
According to the PHP documentation, the code is correct. Any ideas what is wrong?
Running PHP 5.1.2:Code: Select all
//FIGURE OUT FINGERPRINT
$x_tran_key="4BNm8gv2CZ7u2N9Q";
$loginid="A7C73EEFE1D";
$sequence=$_REQUEST['invoice_ID'];
$tstamp=time();
$amount=$row['grand_total'];
$currency='USD';
$data = $x_tran_key . $loginid . "^" . $sequence . "^" . $tstamp . "^" . $amount . "^" . $currency;
$hash = mhash(MHASH_MD5, $data);
$fingerprint = bin2hex($hash);feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]