Pawn/php/javascript problem
#4

PHP код:
function num_hash($string)
    {
        
$length strlen($string);
        
$s1 1;
        
$s2 0;
        for(
$n 0$n $length$n++)
        {
            
$s1 = ($s1 ord($string[$n])) % 65521;
            
$s2 = ($s2 $s1) % 65521;
        }
        echo (
$s2 << 16) + $s1;
    } 
Reply


Messages In This Thread
Pawn/php problem - by Johnson_boy - 05.04.2011, 17:12
Re: Pawn/php/javascript problem - by Johnson_boy - 08.04.2011, 13:14
Re: Pawn/php/javascript problem - by Johnson_boy - 18.05.2011, 16:21
Re: Pawn/php/javascript problem - by MadeMan - 18.05.2011, 16:54
Re: Pawn/php/javascript problem - by Johnson_boy - 18.05.2011, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)