| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|Simple text matching problem|
Cant get md5 version of text to match
| 12:27 pm on Jun 12, 2008 (gmt 0)|
I am trying to get php to match text with an md5 hash of the text stored in a text file:
$test = (trim(md5("SPECIALCODE12")) == $code)?"yes":"no";
But I get a false result whatever I do - even if I copy and paste the value of $code into the first half of the comparison. Also, if I echo out the two sides of the comparison, they look identical.
I'm sure this must be something really silly, but I can't think what.
I'ld really appreciate any help.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved