Trouble with mhash



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'

.



Relevant Pages

  • Re: Trouble with mhash
    ... My hosting company says they have error reporting enabled, ... The hosting company is using php 4.4.7 and the configure command is ... to the browser. ... That's much more important than the config command. ...
    (comp.lang.php)
  • Re: old site still appears
    ... Use the "force new content" key in your browser. ... my browser goes to the old hosting company. ... friends to visit the webpage, ... any suggestions on how to reset ISA on this problem? ...
    (microsoft.public.isa.configuration)
  • what mail program Im using?
    ... a moth ago we moved to new hosting company. ... server is not configured corerctly. ... according php documentation php use by ... do I have to specify it in php code or in php.ini (nothin is specified ...
    (php.general)
  • PHP and a misbehaving contact form
    ... I've got a very simple PHP script that mails me a contact form of a website. ... Neither I nor the hosting company have made any changes to the website or the servers respectively. ... Running phpinfoon the server reveals that PHP is using the 'localhost' on port 25 as its SMTP server. ...
    (php.general)
  • Re: mod rewrite not allowed - help
    ... I thought i have already met the most stupid hosting company in my life. ... It was 3 years ago and they was proposing to me use php instead of PERL for my site, wich was already written with PERL - and also - for security reasons. ... Exact Meta Search | Major Search Engine http://exactsearcher.com ...
    (alt.internet.search-engines)