You are here: Trouble with mhash « PHP Programming Language « IT news, forums, messages
Trouble with mhash

Posted by laredotornado@zipmail.com on 06/30/07 20:03

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'

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация