Page 1 of 1

MSN GRABBER? How to use?

Posted: Fri Oct 20, 2006 4:39 pm
by Aclikyano
http://www.phpclasses.org/browse/package/2299.html

How do u use this PHP file?
I downloaded it cuz Im interested but havent a clue how to use it for its purpose.

Posted: Fri Oct 20, 2006 5:09 pm
by wtf
Have you looked at example.php provided with the class? That would be a place to start.

Posted: Fri Oct 20, 2006 5:13 pm
by Aclikyano
^ I have both downloaded but Im clueless as even how to use them.

Posted: Fri Oct 20, 2006 5:28 pm
by s.dot
Contact list importers change so much I don't see how someone could offer a class that wouldn't need updated when the login security changes (like around once a month).

I haven't looked at the class though.

Posted: Fri Oct 20, 2006 5:31 pm
by RobertGonzalez
What parts of the class are you insure about?

Posted: Fri Oct 20, 2006 5:33 pm
by Aclikyano
Everah wrote:What parts of the class are you insure about?
the whole entire thing! Im brand spanking new to this...I have Windows Live Messenger 8..I downloaded the PHP file..so Im asking how would or do I use this PHP file to get a contacts list? I do not know how to use this file at all.

Posted: Fri Oct 20, 2006 5:37 pm
by RobertGonzalez
Baby steps bro. If you have no prior PHP knowledge you may not want to get into the world of Classes/Objects just yet. Start small and move up from there.

What is your skillset in PHP (since I really don't want to be an assuming @$$ - we all know what that does)?

Posted: Fri Oct 20, 2006 6:07 pm
by Aclikyano
^ nata...

but that still doesnt answer my question I had in the 1st place...
I want to know how to use that php file.
I dont want to learn how to make php files...
I just want to USE that php file I downloaded (already made from someone) and get those contact lists..
Thats all I want to do.

Posted: Fri Oct 20, 2006 6:34 pm
by RobertGonzalez
Ok, in a nutshell, you need a server, it needs to have PHP installed on it. Then the file needs to be on that server so the server can parse it. Now according to the example.php file:

Code: Select all

<?php
include('msnlistgrab.php');
$gm = new msnlistgrab();
$gm->GetRecords();
foreach ($gm->res as $val)
{
    echo $val .'<BR>';
}
echo '<hr>'.$gm->total;
?>
the GetRecords will grab a bunch of thidbits of information and store them into the res array, which you then loop through to see what is in it. But before you put the file onto your server and attempt to execute it, you will need to change some values in the core class itself:

Code: Select all

<?php
var $user='user name goes here';
    var $password='password goes here' ;
    var $server ='messenger.hotmail.com';
    var $port = 1863;
    var $version = 'MSNMSGR 6.2'; 
?>
Set these to what they need to be to hit what you want it to hit, then put them on your server and try to run them. Bear in mind also that this class relies on the cURL extension to be in your PHP install.

In reality, this is something that I would not expect someone that has less than a firm understanding of PHP to deal with.

Posted: Fri Oct 20, 2006 6:52 pm
by Aclikyano
^ thats what I was looking for.
thanks.