What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP MSN UserID [SOLVED]

PHP MSN UserID [SOLVED]
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. PHP MSN UserID [SOLVED]
php code:
function UserId($email) {
    for($x=0, $i=0; $i < strlen($email); $i++){
      $y = ord(substr($email, $i, 1));
      $x *= 101;
      $x += $y;
      $x %= 4294967296;
    }
    return $x;
}

Any idea why that won't work? It says division by zero =/

This post was edited on 01-31-2009 at 08:02 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
01-31-2009 07:56 PM
Profile PM Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: PHP MSN UserID
php code:
function get_msnid ($email){
   $email = strtolower($email);
   for ($msnid=0,$i=0; $i < strlen($email); $i++) {
      $msnid *= 101;
      $msnid += ord($email[$i]);
      while($msnid >= pow(2,32))
         $msnid -= pow(2,32);
   }
   return $msnid;
}
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
01-31-2009 08:00 PM
Profile PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: PHP MSN UserID
That'll do nicely :p

</shex>
<Eljay> "Problems encountered: shit blew up" :zippy:
01-31-2009 08:02 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On