By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,948 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,948 IT Pros & Developers. It's quick & easy.

Trouble with mhash

P: n/a
Hi,

My hosting company says they have error reporting enabled, but when I
visit the following page, I get a blank page with no output sent to
the browser. It works on my dev environment, though. Here is the
code

<?php

$fingerprint = hmac ("abcdef", "12345" . "^" . "99999" . "^" .
"2394234" . "^" . "25" . "^" . "USD");
print $fingerprint;

function hmac ($key, $data)
{
return (bin2hex (mhash(MHASH_MD5, $data, $key)));
}

?>

The hosting company is using php 4.4.7 and the configure command is
below. However, there is an error somewhere since nothing is returned
to the browser. How would you troubleshoot this? - Dave
Command './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--
with-mysql=/usr/local/mysql' '--with-gd' '--with-mhash=/usr/local' '--
with-mcrypt=/usr/local' '--with-dom=/usr/local' '--with-iconv=/usr/
local' '--with-curl=/usr/local' '--with-gettext=/usr/local' '--with-
png-dir=/usr/local' '--with-zlib-dir=/usr/local' '--with-jpeg-dir=/usr/
local' '--with-tiff-dir=/usr/local' '--with-freetype-dir=/usr/local'
'--enable-gd-native-ttf' '--enable-debug=no' '--enable-magic-
quotes=yes'

Jun 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
la***********@zipmail.com wrote:
Hi,

My hosting company says they have error reporting enabled, but when I
visit the following page, I get a blank page with no output sent to
the browser. It works on my dev environment, though. Here is the
code

<?php

$fingerprint = hmac ("abcdef", "12345" . "^" . "99999" . "^" .
"2394234" . "^" . "25" . "^" . "USD");
print $fingerprint;

function hmac ($key, $data)
{
return (bin2hex (mhash(MHASH_MD5, $data, $key)));
}

?>

The hosting company is using php 4.4.7 and the configure command is
below. However, there is an error somewhere since nothing is returned
to the browser. How would you troubleshoot this? - Dave
Command './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--
with-mysql=/usr/local/mysql' '--with-gd' '--with-mhash=/usr/local' '--
with-mcrypt=/usr/local' '--with-dom=/usr/local' '--with-iconv=/usr/
local' '--with-curl=/usr/local' '--with-gettext=/usr/local' '--with-
png-dir=/usr/local' '--with-zlib-dir=/usr/local' '--with-jpeg-dir=/usr/
local' '--with-tiff-dir=/usr/local' '--with-freetype-dir=/usr/local'
'--enable-gd-native-ttf' '--enable-debug=no' '--enable-magic-
quotes=yes'
What does phpinfo() show? That's much more important than the config
command.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.