phpListGrab updated

phpListGrab was created as an example on how to interact with the .NET Messenger Service in PHP, you simply pass it a Passport and password and it populates an array of the contacts in all lists.

The download package contains everything to up and go right away. To use the class, you can initiate it like this:

$phplistgrab = new phpListGrab($passport, $password);
$ret = $phplistgrab->grab();

$passport would be the e-mail address that is being used
$password would be the password for that account

If $ret is true then it worked, and you can get the data from $phplistgrab->lists.

To output the forward list (contacts), you would do it like this:

foreach ($phplistgrab->lists[LIST_FORWARD] as $contact)
{
    echo "$contact['passport'] (".htmlentities($contact['friendlyname']).")<br />\n";
}

You can get data from each list using the follow constants:

LIST_ALLOW
LIST_BLOCK
LIST_FORWARD
LIST_REVERSE

I understand people have (moral) issues with this being released, but this was created with honest intentions and I am only posting this to hopefully stop continual code begging.

Live version also up in the sandbox.

8 Responses to “phpListGrab updated”


  1. 1 Sonyedorly

    Hey!

    That is awesome, found out about what you had done and instantly added/changed a bit of it so that it is now a reverse lookup thing. It will list who is on your msn, whos msn you are on and who is allowed/blocked. I am also working on statuses and display names (easy to do, you already coded that into the include) but sadly msn is not working with it right now, I can sign in fine with the real program but this wont work, and idea why?

    Thanks
    Sonyedorly

    BTW. Find my site at http://msn.sonyedorly.shorturl.com/

  2. 2 Anssik

    The script in sandbox, and in my server always gives the error message: “Failed to connect to server.”

    What’s wrong?

  3. 3 Ronald

    Thank you for updating it

    I love this little thing, it’s great !

    Thank you again

  4. 4 Sonyedorly

    Never mind, forgot that it automatically adds in the @hotmail.com!

  5. 5 Sonyedorly

    wow, obviously it wasnt just me having problems, anyways, I used the same code (someone else had modified it a bit) and I ended up changing about 1/2 of the code so that I could get everything how I wanted it! now if you go to my site (http://msn.sonyedorly.shorturl.com/) you can check who has you on their friends list as well as much more, I am still adding some stuff tho!

    Sonyedorly

  6. 6 esraa

    its not working!!

  7. 7 Rob Sked

    You truely are a God, thank you ever so much for releasing this script.

    I plan to use it very, very, wisely, thank you thank you thank you!!

  8. 8 Noone

    Is there a way to get online status of the contacts along with the contact list? I mean all users, in the contact list, that are online when the script connects to the server.

Leave a Reply