MSN GRABBER? How to use?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Aclikyano
Forum Newbie
Posts: 5
Joined: Fri Oct 20, 2006 4:36 pm

MSN GRABBER? How to use?

Post 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.
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post by wtf »

Have you looked at example.php provided with the class? That would be a place to start.
Aclikyano
Forum Newbie
Posts: 5
Joined: Fri Oct 20, 2006 4:36 pm

Post by Aclikyano »

^ I have both downloaded but Im clueless as even how to use them.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

What parts of the class are you insure about?
Aclikyano
Forum Newbie
Posts: 5
Joined: Fri Oct 20, 2006 4:36 pm

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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)?
Aclikyano
Forum Newbie
Posts: 5
Joined: Fri Oct 20, 2006 4:36 pm

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Aclikyano
Forum Newbie
Posts: 5
Joined: Fri Oct 20, 2006 4:36 pm

Post by Aclikyano »

^ thats what I was looking for.
thanks.
Post Reply