In my case I had problems with rtrim function:
$output = rtrim($output, “”);
It didn’t trim the string correcty because “” is not trimming some hidden characters.
Remove second parameter:
$output = rtrim($output);
Without the second parameter, rtrim() will strip these characters:
” ” (ASCII 32 (0x20)), an ordinary space.
“\t” (ASCII 9 (0x09)), a tab.
“\n” (ASCII 10 (0x0A)), a new line (line feed).
“\r” (ASCII 13 (0x0D)), a carriage return.
“” (ASCII 0 (0x00)), the NULL-byte.
“\x0B” (ASCII 11 (0x0B)), a vertical tab.
md5 is broken – do not use it
i have written a new post since then – please see this
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Notify me of new posts via email.