Re: Can't compare a decrypted variable to a string ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/13/05, Graham Anderson <grahama@xxxxxxxx> wrote:

>   $realcmd =  decrypt($cmd);
[...]
>      elseif(decrypt($cmd) == $realcmd)

That's obviously going to succeed no matter what $cmd decrypts into.
It doesn't really tell you anything useful.

>   $realcmd =  decrypt($cmd); // 'makesmil'
[...]
>      if( decrypt($cmd) == 'makesmil')

If this really fails, it means that $cmd doesn't decrypt into
'makesmil'.  Are you sure that it's not been padded with spaces or
something?

 -robin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux