Friday, August 25. 2006
Comments
Display comments as
(Linear | Threaded)
Good script but the only problem is it signs you out of msn mesanger if you are signed in.
Their must be another way to do it as well as other sites seem to do it
Their must be another way to do it as well as other sites seem to do it
Hi Rob
I could be wrong but I think most of the social networking sites (they seem to be the main sites which use this technology) grab the hotmail address book rather than the msn messenger contact list.
It would be great to be able to grab the contact list without needing to fully sign in and kick the user out of any other sessions they are currently in. I'm just not sure that it is possible. Having said that I need to look into it some more.
I could be wrong but I think most of the social networking sites (they seem to be the main sites which use this technology) grab the hotmail address book rather than the msn messenger contact list.
It would be great to be able to grab the contact list without needing to fully sign in and kick the user out of any other sessions they are currently in. I'm just not sure that it is possible. Having said that I need to look into it some more.
Ahh yeah good point. Done a bit of testing and this does seem the case.
How reliable do you find the code? I have been doing quite a lot of testing on a modified version and it only seems to work 50% or so of the time
How reliable do you find the code? I have been doing quite a lot of testing on a modified version and it only seems to work 50% or so of the time
I actually found it quite reliable. Do you also have problems with the class before any modifications?
I don't recall the class failing although I've only tested it on the one server.
I don't recall the class failing although I've only tested it on the one server.
Hi does anyone have a full working script of this that will invite the contacts
or a new script what doesnt log you out
email me please lethal_s65@hotmail.co.uk
or a new script what doesnt log you out
email me please lethal_s65@hotmail.co.uk
Hi wayne
Grabbing an msn messenger contact list is far simpler than a hotmail contact list but it does have the unfortunate side effect of logging a user out of the msn service. Not disasterous but certainly an inconvenience. A contact list grabber for hotmail (and also probably AOL mail) is definitely on my 'to do' list but it may be a little while in arriving.
Initially I made the decision not to have the script email contacts as for my purposes I wanted to give my visitors an opportunity to select which of their contacts they actually wanted to invite before sending out emails. This requires generating forms, for which good classes already exist (for example in the PEAR repository), and then sending out emails once the form is submitted, again for which good classes already exist assuming you want to avoid the overheads associated with sending multiple emails using the PHP mail() function. If you are looking for a class to send emails you might like to look at Swift mailer, I haven't tried it myself but I have heard some good things about it. Alternatively there is also phpmailer which has been around for a good long while and I know many people find it has the functionality they need. It should be possible to find both packages with a quick visit to your favourite serach engine.
A tutorial type post looking at this process is again on my list of things to do but I have recently moved back to uni so everything is on hold for a little while. If you are in a rush you may want to take a look at phpclasses.org for a msn contact list grabber, although it also lacks email functionality. I was unable to get it to work but you might have better luck (if you do please let me know - no point in me duplicating somebodies hard work later on).
Grabbing an msn messenger contact list is far simpler than a hotmail contact list but it does have the unfortunate side effect of logging a user out of the msn service. Not disasterous but certainly an inconvenience. A contact list grabber for hotmail (and also probably AOL mail) is definitely on my 'to do' list but it may be a little while in arriving.
Initially I made the decision not to have the script email contacts as for my purposes I wanted to give my visitors an opportunity to select which of their contacts they actually wanted to invite before sending out emails. This requires generating forms, for which good classes already exist (for example in the PEAR repository), and then sending out emails once the form is submitted, again for which good classes already exist assuming you want to avoid the overheads associated with sending multiple emails using the PHP mail() function. If you are looking for a class to send emails you might like to look at Swift mailer, I haven't tried it myself but I have heard some good things about it. Alternatively there is also phpmailer which has been around for a good long while and I know many people find it has the functionality they need. It should be possible to find both packages with a quick visit to your favourite serach engine.
A tutorial type post looking at this process is again on my list of things to do but I have recently moved back to uni so everything is on hold for a little while. If you are in a rush you may want to take a look at phpclasses.org for a msn contact list grabber, although it also lacks email functionality. I was unable to get it to work but you might have better luck (if you do please let me know - no point in me duplicating somebodies hard work later on).
Hi,
I am looking for a script to grab contacts of orkut.
Thanks for the help in advance.
stranger
I am looking for a script to grab contacts of orkut.
Thanks for the help in advance.
stranger
I suggest you take a look at the package I'm talking about in this post:
http://torrentialwebdev.com/blog/archives/97-MSN-contact-grab-script-included-in-meta-contact-grabber.html
http://torrentialwebdev.com/blog/archives/97-MSN-contact-grab-script-included-in-meta-contact-grabber.html
i tried it and got
Warning: feof(): supplied argument is not a valid stream resource in /msn grab/msn_contact_grab.class.php on line 184
Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in msn grab/msn_contact_grab.class.php on line 187
and
Warning: fwrite(): supplied argument is not a valid stream resource in /msn grab/msn_contact_grab.class.php on line 381
any ideas why this is? I tried it without altering the code just to make sure it worked before modifying it or anything
Warning: feof(): supplied argument is not a valid stream resource in /msn grab/msn_contact_grab.class.php on line 184
Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in msn grab/msn_contact_grab.class.php on line 187
and
Warning: fwrite(): supplied argument is not a valid stream resource in /msn grab/msn_contact_grab.class.php on line 381
any ideas why this is? I tried it without altering the code just to make sure it worked before modifying it or anything
I've just tried the test script running on my server and got a similar error. I've removed the link from the original post and I'll look into it.
It may be a few days however as I currently have only limited internet access.
It may be a few days however as I currently have only limited internet access.
Okay, strangely it is working perfectly again now.
I suspect that when we last tried it there was a problem with the msn server. The script still does work it just doesn't break gracefully.
Clearly it still needs work but hopefully it shouldn't be as bad as I initially feared. Having said that testing is going to be a pain.
I suspect that when we last tried it there was a problem with the msn server. The script still does work it just doesn't break gracefully.
Clearly it still needs work but hopefully it shouldn't be as bad as I initially feared. Having said that testing is going to be a pain.
unfortunately I still get the same problem on my site.
You can see it at
http://www.robertm.org/hotmail/usage.php
but the example above works just fine.
odness
You can see it at
http://www.robertm.org/hotmail/usage.php
but the example above works just fine.
odness
That is surprising. I've tried it on both our servers within a few seconds of each other and although it is still working on mine you get a whole bunch of errors on your server.
The script needs work but I don't think that is the problem in this case. If you could send me a copy of a phpinfo file for your server I might be able to track down the problem. My email can be found my clicking on my name below.
The script needs work but I don't think that is the problem in this case. If you could send me a copy of a phpinfo file for your server I might be able to track down the problem. My email can be found my clicking on my name below.
it's a problem with my server which i'll look into in a bit, I was just trying it out for a project which would go in another server and it works great there =D.
thanks for the replies though, I might ask you some questions about the Gmail grabber soon in the other entry ^^
thanks for the replies though, I might ask you some questions about the Gmail grabber soon in the other entry ^^
That's great to know, I'm glad you've got it working.
I doubt you'll have any problems with the gmail grabber, it uses a well established package with far better error checking than the msn grabber. If memory serves though it may use curl so you'll need to ensure that your server supports that.
I doubt you'll have any problems with the gmail grabber, it uses a well established package with far better error checking than the msn grabber. If memory serves though it may use curl so you'll need to ensure that your server supports that.
je veut un prog qui pirate les msn grabbe
This script is what i've been looking for for a long time...and it works!, Thank you very much! Good work, dude!
Am I authorised to distribute your script from my site http://infoapuntes.com (with all the info about the author and everything, of course)???
Greetings from Spain!
Am I authorised to distribute your script from my site http://infoapuntes.com (with all the info about the author and everything, of course)???
Greetings from Spain!
Oh, I'm sorry, I thought it worked, but it doesnt on my server. As a fellow told before, I get lots of lines like this:
Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 381
Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 381
Warning: feof(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 184
Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 187
Warning: feof(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 184
If you know how to solve this, please tell me!!
Thank you very much
Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 381
Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 381
Warning: feof(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 184
Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 187
Warning: feof(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 184
If you know how to solve this, please tell me!!
Thank you very much
It is one of those annoying bugs that only shows up occasionally and as such is very difficult to test for.
Having said that it shouldn't be kicking out dozens of errors when it fails and I'm looking into how to improve the error checking.
Having said that it shouldn't be kicking out dozens of errors when it fails and I'm looking into how to improve the error checking.
I havent been able yet to have it working on my server.
My phpinfo file is at http://infoapuntes.com/phpinfo.php ,so you can see that everything is correct...
thank you very much again for your script.
GreetingS!
My phpinfo file is at http://infoapuntes.com/phpinfo.php ,so you can see that everything is correct...
thank you very much again for your script.
GreetingS!
Hi
I've just taken a look at your php info file (always very useful so thankyou for posting that) and I think I know what the problem is. It would appear that your server doesn't have socket support enabled. The script connects to the msn servers via a socket connection so without that the script won't work.
If I missed the socket support in your phpinfo file let me know (it is possible, I've just got back from 9 hours at university and I'm slightly tired) and I'll take a closer look at what the problem is.
Going back to your original comment I'm happy for you to distribute the script (I would appreciate a link back) although I fully understand if you have changed your mind given the problems you have encountered.
I've just taken a look at your php info file (always very useful so thankyou for posting that) and I think I know what the problem is. It would appear that your server doesn't have socket support enabled. The script connects to the msn servers via a socket connection so without that the script won't work.
If I missed the socket support in your phpinfo file let me know (it is possible, I've just got back from 9 hours at university and I'm slightly tired) and I'll take a closer look at what the problem is.
Going back to your original comment I'm happy for you to distribute the script (I would appreciate a link back) although I fully understand if you have changed your mind given the problems you have encountered.
Hi Johathan,
It's so nice to have an answer so soon, thank you very much.
I've just come from the university and read your post. I'd like you to tell me which parameter(or parameters) from the phpinfo have to be enabled, so I can ask my hosting service to change it (if possible).
I let you know that I've included a link to your website in my site Infoapuntes.com. You can find it at:
-The footer of every page at http://infoapuntes.com
-The URL : http://infoapuntes.com/intercambio_links.php
And last, please, do not hesitate in asking me what you need to make this script works on my site. I think its very important because the hosting is godaddy.com, which hosts millions of user all around the web, so we could contribute to solve the problems that many people could have with your GrabMsn script. I'll distribute it from my site when we make it work or, at least, when we know what the problem is.
Thank you very much again!
¡Hasta luego!
It's so nice to have an answer so soon, thank you very much.
I've just come from the university and read your post. I'd like you to tell me which parameter(or parameters) from the phpinfo have to be enabled, so I can ask my hosting service to change it (if possible).
I let you know that I've included a link to your website in my site Infoapuntes.com. You can find it at:
-The footer of every page at http://infoapuntes.com
-The URL : http://infoapuntes.com/intercambio_links.php
And last, please, do not hesitate in asking me what you need to make this script works on my site. I think its very important because the hosting is godaddy.com, which hosts millions of user all around the web, so we could contribute to solve the problems that many people could have with your GrabMsn script. I'll distribute it from my site when we make it work or, at least, when we know what the problem is.
Thank you very much again!
¡Hasta luego!
Quite often on free hosts they don't like you connecting to other sites and so disable options like sockets and curl. This is the first time I've seen sockets disabled on a pid for service. Having said that although godaddy have a good reputation for domain name purchasing they have a poor reputation for web hosting.
To enable sockets php needs to be compiled with the following configure command - '--enable-sockets'.
I hope you have luck persuading godaddy to alter their settings. I'll look through the php manual to see if there is any way to get the script to work without using sockets.
To enable sockets php needs to be compiled with the following configure command - '--enable-sockets'.
I hope you have luck persuading godaddy to alter their settings. I'll look through the php manual to see if there is any way to get the script to work without using sockets.
Hi again Jonathan,
I've contacted with godaddy support to get the sockets enabled. And what I got was:
"Thank you for contacting Online Support.
Please refer to the Help Center article at: http://help.godaddy.com/article.php?article_id=85&topic_id=&&
There are no functions disabled, if needed you can create your own php.ini file."
It means that i can add the functions i need just by creating a php.ini file and storing it in the root directory of my site. And now the question is...how should the php.ini be like?
I've contacted with godaddy support to get the sockets enabled. And what I got was:
"Thank you for contacting Online Support.
Please refer to the Help Center article at: http://help.godaddy.com/article.php?article_id=85&topic_id=&&
There are no functions disabled, if needed you can create your own php.ini file."
It means that i can add the functions i need just by creating a php.ini file and storing it in the root directory of my site. And now the question is...how should the php.ini be like?
That sounds like good news. I've uploaded a sample php.ini file to my server and you can download it at http://www.jmstreet.info/tools/sample_php_ini_file.txt
You'll need to rename it as php.ini. I've enabled sockets (for this script), curl (another useful one which is used in the gmail contact grabber) and gd2 (image processing which you might find useful). It is fairly well commented so hopefully you'll be able to modify it in future if the need arises.
Hopefully that will get you sorted.
One final note, when you upload it to your server and rename it you may find that it disappears from the directory file list. This sometimes happens and just depends on how the server is set up. Just go on and check to make sure you have the extensions enabled by checking your phpinfo file.
You'll need to rename it as php.ini. I've enabled sockets (for this script), curl (another useful one which is used in the gmail contact grabber) and gd2 (image processing which you might find useful). It is fairly well commented so hopefully you'll be able to modify it in future if the need arises.
Hopefully that will get you sorted.
One final note, when you upload it to your server and rename it you may find that it disappears from the directory file list. This sometimes happens and just depends on how the server is set up. Just go on and check to make sure you have the extensions enabled by checking your phpinfo file.
It seems it doesn't work, Jonathan, 
I still get those annoying
Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 381
Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 381
Warning: feof(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 184...
I copied and pasted the whole php.ini file you told me, but nothing.
I put the file in the root directory and it seems to affect my website (sessions and so), because it works different (i mean, i cant login at my admin account).But it doesnt do what we wanted: grab the msn lists...
I hope not to bother you so much with my problem. I'll understand if you give it up...
Thank you very much!
I still get those annoying
Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 381
Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 381
Warning: feof(): supplied argument is not a valid stream resource in /home/content/r/a/u/raul123/html/msn/msn_contact_grab.class.php on line 184...
I copied and pasted the whole php.ini file you told me, but nothing.
I put the file in the root directory and it seems to affect my website (sessions and so), because it works different (i mean, i cant login at my admin account).But it doesnt do what we wanted: grab the msn lists...
I hope not to bother you so much with my problem. I'll understand if you give it up...
Thank you very much!
I am looking the php.ini file deeply and I have one question:
Is this directive correct? Is it an standard directory or should I ask godaddy where do the extensions reside?
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:/wamp/php4/extensions/"
Thanks again
Is this directive correct? Is it an standard directory or should I ask godaddy where do the extensions reside?
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:/wamp/php4/extensions/"
Thanks again
A very good point, that will need to be changed.
The phpinfo file you have at the moment says the extension_dir should be 'C:\php\extensions'. Might be better trying that.
I posted that sample php.ini file in rather a rush and should have looked at it more carefully.
I've just been looking at the godaddy help pages and I was wondering whether following these instructions - http://help.godaddy.com/article.php?article_id=1077&prog_id=GoDaddy&isc= - lead to a sample php.ini file?
The phpinfo file you have at the moment says the extension_dir should be 'C:\php\extensions'. Might be better trying that.
I posted that sample php.ini file in rather a rush and should have looked at it more carefully.
I've just been looking at the godaddy help pages and I was wondering whether following these instructions - http://help.godaddy.com/article.php?article_id=1077&prog_id=GoDaddy&isc= - lead to a sample php.ini file?
I've just updated the php.ini file. Hopefully you will have better luck with it.
http://www.jmstreet.info/tools/sample_php_ini_file.txt
http://www.jmstreet.info/tools/sample_php_ini_file.txt
Hi
I've just checked your phpinfo file again and it is saying that you still don't have the sockets extension enabled.
On closer examination there are actually some extensions which are enabled in your phpinfo file which aren't in the php.ini file. The only thing I can think of is that they have some sort of override in place.
I've just checked your phpinfo file again and it is saying that you still don't have the sockets extension enabled.
On closer examination there are actually some extensions which are enabled in your phpinfo file which aren't in the php.ini file. The only thing I can think of is that they have some sort of override in place.
Hi Jonathan,
Godaddy has just told me that they cannot enable sockets on my shared hosting...
There are only available some standard ports (http, ssl...).
That make me think about another way of using your script for people(like me) who dont have sockets enabled. For example, the usage.php form could send the input to another server(with sockets enabled) where the class is hosted.Then, the results are returned to the script that calls the class. Of course its a light overview, and a very rustic solution...
If you think there is a way using standard http ports or so, tell me.
Thank you for your help!
Godaddy has just told me that they cannot enable sockets on my shared hosting...
There are only available some standard ports (http, ssl...).
That make me think about another way of using your script for people(like me) who dont have sockets enabled. For example, the usage.php form could send the input to another server(with sockets enabled) where the class is hosted.Then, the results are returned to the script that calls the class. Of course its a light overview, and a very rustic solution...
If you think there is a way using standard http ports or so, tell me.
Thank you for your help!
It's funny you should mention that as I've just sent you an email with much the same idea.
What you suggest is actually very easy to achieve but to do it well is a little harder. I'll think it over and hopefully come up with something.
What you suggest is actually very easy to achieve but to do it well is a little harder. I'll think it over and hopefully come up with something.
hola como estas,
tengo el mismo problema que tu, me salen esos errores y no he podido solucionarlo, en esta pagina parece funcionar perfecto pero en mi localhost ni en mi servidor funciona.. estoy alojado en godaddy.com como tu, como puedo hacer para soluicioarlo? ojala lo jhayas logrado, si has poddido porfa te ruego ayuda.. juan@oktopuscali.com gracias.
tengo el mismo problema que tu, me salen esos errores y no he podido solucionarlo, en esta pagina parece funcionar perfecto pero en mi localhost ni en mi servidor funciona.. estoy alojado en godaddy.com como tu, como puedo hacer para soluicioarlo? ojala lo jhayas logrado, si has poddido porfa te ruego ayuda.. juan@oktopuscali.com gracias.
Hola, el problema que tengo es culpa de que no tengo los sockets habilitados. Hablé con godaddy y m han dicho que en los hostings compartidos no los habilitan. Por tanto...no hay manera de usar este script en esas condiciones.
En tu localhost debes tener una línea así:
'--enable-sockets' lo cual debes conseguir compilando el php con algún parámetro que no sé cómo se hace.
Espero que te aclare la duda. Un saludo!
En tu localhost debes tener una línea así:
'--enable-sockets' lo cual debes conseguir compilando el php con algún parámetro que no sé cómo se hace.
Espero que te aclare la duda. Un saludo!
hola, gracias por tu respuesta,
la verdad quedo sin poder hacer nada entonces porqeu todos mis hostings estan en godaddy.
tocara comprar otro servidor linux para montar este script entonces?
solo con activar los sockets se arregla?¿
la verdad quedo sin poder hacer nada entonces porqeu todos mis hostings estan en godaddy.
tocara comprar otro servidor linux para montar este script entonces?
solo con activar los sockets se arregla?¿
Hi all,
To address the problem of not having sockets enabled I've just released a web service which should allow you to still use the script.
Basically you can connect to my server, I'll run the query and then return the results back to you.
The link is http://jmstreet.info/archives/37-MSN-contact-grab-web-service-is-finally-up.html
To address the problem of not having sockets enabled I've just released a web service which should allow you to still use the script.
Basically you can connect to my server, I'll run the query and then return the results back to you.
The link is http://jmstreet.info/archives/37-MSN-contact-grab-web-service-is-finally-up.html
mypass is right but,
>>> VER 1 MSNP9 CVR0
> CVR 2 0x0409 win 4.10 i386 MSNMSGR 7.0.0816 MSMSGS MYEMAILHERE@hotmail.com
> USR 3 TWN I MYEMAILHERE@hotmail.com
> VER 1 MSNP9 CVR0
> CVR 2 0x0409 win 4.10 i386 MSNMSGR 7.0.0816 MSMSGS MYEMAILHERE@hotmail.com
> USR 3 TWN I MYEMAILHERE@hotmail.com
> SYN 4 0
>>> CHG 5 NLN
>>> VER 1 MSNP9 CVR0
> CVR 2 0x0409 win 4.10 i386 MSNMSGR 7.0.0816 MSMSGS MYEMAILHERE@hotmail.com
> USR 3 TWN I MYEMAILHERE@hotmail.com
> VER 1 MSNP9 CVR0
> CVR 2 0x0409 win 4.10 i386 MSNMSGR 7.0.0816 MSMSGS MYEMAILHERE@hotmail.com
> USR 3 TWN I MYEMAILHERE@hotmail.com
> SYN 4 0
>>> CHG 5 NLN
Hi
I'm sorry to hear that you are having trouble.
Could you tell me a little bit more about what you are doing? Is it a custom script or are you using the example?
I would suggest you try commenting out the $ssh_login variable. That sometimes helps with auth problems. Apart from that I would really need to know more to be able to help you.
I'm sorry to hear that you are having trouble.
Could you tell me a little bit more about what you are doing? Is it a custom script or are you using the example?
I would suggest you try commenting out the $ssh_login variable. That sometimes helps with auth problems. Apart from that I would really need to know more to be able to help you.
i m using example code,
>>> CVR 2 0x0409 win 4.10 i386 MSNMSGR 7.0.0816 MSMSGS MYEMAIL@hotmail.com
> USR 3 TWN I MYEMAIL@hotmail.com
> SYN 4 0
>>> CHG 5 NLN
>>> CVR 2 0x0409 win 4.10 i386 MSNMSGR 7.0.0816 MSMSGS MYEMAIL@hotmail.com
> USR 3 TWN I MYEMAIL@hotmail.com
> SYN 4 0
>>> CHG 5 NLN
Hi abkod
Well you definitely don't need to worry about your password, it will actually come up saying 'auth failure' or something similar in debug mode if you use the wrong password.
Okay, lets try and get this sorted. Just for clarification, you uploaded the script to your server, tried it with your username/password, and got absolutely no result. Following that you edited the class file and turned debug mode on and now you get the text printed out that you included above. Do you get anything else printed out or is that all of it? Have you tried your username/password on the test script on my site? I'm curious whether I get the same error. Also if you could post a link to the script on your server I'll run a test username/password combo through it and try and identify the error.
Well you definitely don't need to worry about your password, it will actually come up saying 'auth failure' or something similar in debug mode if you use the wrong password.
Okay, lets try and get this sorted. Just for clarification, you uploaded the script to your server, tried it with your username/password, and got absolutely no result. Following that you edited the class file and turned debug mode on and now you get the text printed out that you included above. Do you get anything else printed out or is that all of it? Have you tried your username/password on the test script on my site? I'm curious whether I get the same error. Also if you could post a link to the script on your server I'll run a test username/password combo through it and try and identify the error.
http://www.abkod.com/msn_contact_grab/usage.php
debug mode is on
debug mode is on
Hi abkod
I've spent a couple of hours over the past day trying to figure out why you are getting this error and still the only thing I can suggest is to comment out the $ssh_login variable. I don't know if you have already tried this in reply to my previous post but if not do please try it. Apart from that I'm at a dead end I'm afraid.
I've spent a couple of hours over the past day trying to figure out why you are getting this error and still the only thing I can suggest is to comment out the $ssh_login variable. I don't know if you have already tried this in reply to my previous post but if not do please try it. Apart from that I'm at a dead end I'm afraid.
I got similar error messages.
>>> VER 1 MSNP9 CVR0
> CVR 2 0x0409 win 4.10 i386 MSNMSGR 7.0.0816 MSMSGS baocun_hld@hotmail.com
> USR 3 TWN I baocun_hld@hotmail.com
> VER 1 MSNP9 CVR0
> CVR 2 0x0409 win 4.10 i386 MSNMSGR 7.0.0816 MSMSGS baocun_hld@hotmail.com
> USR 3 TWN I baocun_hld@hotmail.com
>>> VER 1 MSNP9 CVR0
> CVR 2 0x0409 win 4.10 i386 MSNMSGR 7.0.0816 MSMSGS baocun_hld@hotmail.com
> USR 3 TWN I baocun_hld@hotmail.com
> VER 1 MSNP9 CVR0
> CVR 2 0x0409 win 4.10 i386 MSNMSGR 7.0.0816 MSMSGS baocun_hld@hotmail.com
> USR 3 TWN I baocun_hld@hotmail.com
how would i make it print all the msn contacts to a database or text file?
I want to use this as a contact list back up service. I just want it to print the found address to a text file called contacts.txt, in this text file i want each e-mail address to have a separate parapraph. Once this is done i will create a retrieval interface.
please e-mail me slater.john@gmail.com
I want to use this as a contact list back up service. I just want it to print the found address to a text file called contacts.txt, in this text file i want each e-mail address to have a separate parapraph. Once this is done i will create a retrieval interface.
please e-mail me slater.john@gmail.com
Hi John
Generally writing to a file is achieved using the fopen and fwrite functions. I would recommend you check the documentation at php.net/fwrite
For a database you just construct your sql statement as you would for any other data and the run the query. I would suggest that instead of constructing a query and then running it for each individual contact you just append the insert query to a variable and then insert them all in one query.
I also have a entry looking at getting contacts from gmail which may interest you.
Generally writing to a file is achieved using the fopen and fwrite functions. I would recommend you check the documentation at php.net/fwrite
For a database you just construct your sql statement as you would for any other data and the run the query. I would suggest that instead of constructing a query and then running it for each individual contact you just append the insert query to a variable and then insert them all in one query.
I also have a entry looking at getting contacts from gmail which may interest you.
I think maybe you should create a second version that introduces this function, printing to a text file.
The problem with taking a functionality like this to the final objective (in your case storing the data in a text file) is that no two people want to achieve the exact same thing. If I extended the class to write to a text file I would have to decide the format in which it is saved and there are probably as many different ways to store the data as there are people likely to use the class. All those people are going to be left with a solution that only partly meets their needs.
As it stands at the moment the class enables a variety of uses but (I hope) it doesn't limit any options.
If there is some demand for it I may write a small application for storing the data from the class in a text file but it wouldn't be built in with the class. In the meantime if you have any problems writing the data to a text file let me know and I'll try and help.
As it stands at the moment the class enables a variety of uses but (I hope) it doesn't limit any options.
If there is some demand for it I may write a small application for storing the data from the class in a text file but it wouldn't be built in with the class. In the meantime if you have any problems writing the data to a text file let me know and I'll try and help.
Hi,
A very useful class you have got there
. I managed to get it working but I face a few problems, perhaps due to my ignorance.
1) How do we go about customizing the data we retrieve from the MSN? Is it possible to retrieve info such as your friend's online status at that point of time you connect?
2) The more serious problem I am facing is the time taken to retrieve the contact list. I tried it couple of times and with a list of 56 users, it took at least 120 seconds, is it normal or there is a fix on this by tweaking some configurations?
Any comments or advice is appreciated. Thanks!
A very useful class you have got there
1) How do we go about customizing the data we retrieve from the MSN? Is it possible to retrieve info such as your friend's online status at that point of time you connect?
2) The more serious problem I am facing is the time taken to retrieve the contact list. I tried it couple of times and with a list of 56 users, it took at least 120 seconds, is it normal or there is a fix on this by tweaking some configurations?
Any comments or advice is appreciated. Thanks!
Hey,
my server has php socket server and curl installed in /usr/local/bin/curl and i set $curl to 1
but I couldnt succeed to run the script properly.
I see many erros, the first ones are
Warning: fwrite(): supplied argument is not a valid stream resource in /home/karsiko/rel/public/msn_contact_grab/msn_contact_grab.class.php on line 381
Warning: fwrite(): supplied argument is not a valid stream resource in /home/karsiko/rel/public/msn_contact_grab/msn_contact_grab.class.php on line 381
Warning: feof(): supplied argument is not a valid stream resource in /home/karsiko/rel/public/msn_contact_grab/msn_contact_grab.class.php on line 184
Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in /home/karsiko/rel/public/msn_contact_grab/msn_contact_grab.class.php on line 187
my server has php socket server and curl installed in /usr/local/bin/curl and i set $curl to 1
but I couldnt succeed to run the script properly.
I see many erros, the first ones are
Warning: fwrite(): supplied argument is not a valid stream resource in /home/karsiko/rel/public/msn_contact_grab/msn_contact_grab.class.php on line 381
Warning: fwrite(): supplied argument is not a valid stream resource in /home/karsiko/rel/public/msn_contact_grab/msn_contact_grab.class.php on line 381
Warning: feof(): supplied argument is not a valid stream resource in /home/karsiko/rel/public/msn_contact_grab/msn_contact_grab.class.php on line 184
Warning: stream_get_meta_data(): supplied argument is not a valid stream resource in /home/karsiko/rel/public/msn_contact_grab/msn_contact_grab.class.php on line 187
Hi zaveko
Parts of the script need a complete re-write to ensure this isn't a problem. I should hopefully complete this soon.
Until then you may like to give the web service a try - http://jmstreet.info/archives/37-MSN-contact-grab-web-service-is-finally-up.html
Parts of the script need a complete re-write to ensure this isn't a problem. I should hopefully complete this soon.
Until then you may like to give the web service a try - http://jmstreet.info/archives/37-MSN-contact-grab-web-service-is-finally-up.html
The new script is now online. This new version should prevent the ugly errors showing up should the script fail. The idea is that it now fails 'gracefully'.
http://jmstreet.info/archives/59-Update-to-msn-messenger-contact-grab-class.html
http://jmstreet.info/archives/59-Update-to-msn-messenger-contact-grab-class.html
thats great Jonathan, I checked it and it worked very well, thank u very much
How often would you say that happens?
It has been mentioned before as a problem but I haven't been able to repeat it. I've been able to go 10 - 20 queries without a problem.
It has been mentioned before as a problem but I haven't been able to repeat it. I've been able to go 10 - 20 queries without a problem.
Can this be used to grab the MSN contacts and invite them, for spamming? It looks like it but I don't understand how to use it. I want to put it on my site and then have all visitors with MSN give me their contacts!
This script as it stands will only get the visitors contacts. It won't send out any emails. That part of things you will need to develop yourself. I have written a tutorial on the basics of this though - http://torrentialwebdev.com/blog/archives/26-Contacting-a-contact-list-A-tutorial.html
As with any refer-a-friend or send-to-a-friend type script spam is a potential problem. A malicious user could use your script to send out spam. I deal with some of the issues in this post - http://torrentialwebdev.com/blog/archives/25-Follow-on-to-contacting-a-contact-list.html
There are three key points to cover with regards to potential spam: be upfront about why you are sending the email; don't send multiple emails to the same person about the same thing; allow an email recipient to opt out of receiving future messages.
As with any refer-a-friend or send-to-a-friend type script spam is a potential problem. A malicious user could use your script to send out spam. I deal with some of the issues in this post - http://torrentialwebdev.com/blog/archives/25-Follow-on-to-contacting-a-contact-list.html
There are three key points to cover with regards to potential spam: be upfront about why you are sending the email; don't send multiple emails to the same person about the same thing; allow an email recipient to opt out of receiving future messages.
The test is not working?
i am getting this error
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/jmstre/public_html/tools/msn_contact_grab/msn_contact_grab.class.php on line 344
however I have seen this before, I think you can fix it by createing a file witht the name php.ini and placing it on the directory
/home/jmstre/public_html/tools/msn_contact_grab/
the file should be this text on it
safe_mode = off
i am getting this error
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/jmstre/public_html/tools/msn_contact_grab/msn_contact_grab.class.php on line 344
however I have seen this before, I think you can fix it by createing a file witht the name php.ini and placing it on the directory
/home/jmstre/public_html/tools/msn_contact_grab/
the file should be this text on it
safe_mode = off
The script is still working but it is throwing up an error. This is a new development so I can only assume that my host has changed their server settings. Not entirely sure why, generally safe mode isn't considered very useful.
Thanks for the tip but I think that only works when PHP is configured to run via CGI. I think my host has it set up as a module in Apache.
Thanks for the tip but I think that only works when PHP is configured to run via CGI. I think my host has it set up as a module in Apache.
You need to know the password. The purpose of the script is to make it easier for someone to import their contacts into your web application. It is expected that they would know their password.
I don't know of any way to get the contact list without a valid password.
I don't know of any way to get the contact list without a valid password.
Hi, i've been trying to use your webservice, as my host doesn't support cURL. I can use the example in your site, but when i try in my host, it logins to messenger but then gives te following error: CGI Error -
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
This must be something basic as i don't see anyone else complaining about this, but i can't solve it..
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
This must be something basic as i don't see anyone else complaining about this, but i can't solve it..
That's a strange one. Have you tried fetching external files before? rss feeds perhaps?
The reason I ask is that if you don't have cURL enabled it is possible that your host is preventing any external content being fetched. I would suggest that you make sure you have fopen wrappers enabled either by checking a phpinfo file or by speaking with your host.
If you have fopen wrappers enabled I'll take a closer look.
The reason I ask is that if you don't have cURL enabled it is possible that your host is preventing any external content being fetched. I would suggest that you make sure you have fopen wrappers enabled either by checking a phpinfo file or by speaking with your host.
If you have fopen wrappers enabled I'll take a closer look.
Hi,
I’m using your brilliant script however I keep receiving this notice: Undefined variable: stream_info in C:\whatever\whatever\whatever\whatever\msn_contact_grab.class.php on line 182 I don’t know if it could be related but sometimes the script will run and retrieve the list of emails and sometimes it will just bring up a blank page with the login box. I am completely baffled as to what’s happening here so any help would be really appreciated!
I’m using your brilliant script however I keep receiving this notice: Undefined variable: stream_info in C:\whatever\whatever\whatever\whatever\msn_contact_grab.class.php on line 182 I don’t know if it could be related but sometimes the script will run and retrieve the list of emails and sometimes it will just bring up a blank page with the login box. I am completely baffled as to what’s happening here so any help would be really appreciated!
Hi Ross
Sorry to hear you're having problems. I've identified the cause of the error and corrected the class. If you download the zip archive again you shouldn't have any problems.
The blank list I think, based on my own experience, is a separate issue. I've only ever had this problem if I've connected multiple times in quick succession to test the script. I think it is MSN preventing a flood of requests. It's an annoyance if you want to test the script but shouldn't cause problems for visitors where it is likely only to be used once.
If you're getting a blank screen even on the first attempt after a 30-60min gap please let me know as obviously this is a problem that needs to be sorted.
Thanks
Jonathan
Sorry to hear you're having problems. I've identified the cause of the error and corrected the class. If you download the zip archive again you shouldn't have any problems.
The blank list I think, based on my own experience, is a separate issue. I've only ever had this problem if I've connected multiple times in quick succession to test the script. I think it is MSN preventing a flood of requests. It's an annoyance if you want to test the script but shouldn't cause problems for visitors where it is likely only to be used once.
If you're getting a blank screen even on the first attempt after a 30-60min gap please let me know as obviously this is a problem that needs to be sorted.
Thanks
Jonathan
Hi,
Thanks the notice is now gone and fixed! And as for the blank screen im only getting this after resubmitting the script in 10 or so mins intervals so as you said msn must be preventing a flood of requests. Thanks again (This was such a fast reply as I only posted it about 10-15 mins ago!)
Ross
PS. This really is an excellent script!
Thanks the notice is now gone and fixed! And as for the blank screen im only getting this after resubmitting the script in 10 or so mins intervals so as you said msn must be preventing a flood of requests. Thanks again (This was such a fast reply as I only posted it about 10-15 mins ago!)
Ross
PS. This really is an excellent script!
Hi, I am using your script on my site and sometimes its working perfectly, but most of the time the table returned is blank. I have no idea of the problem, i have noticed that it happens with hotmail.co.uk addresses the most frequently.
would you be able to check my servers configuration when you get time. Its available here: http://yourpro.co.uk/phpinfo.php
Thanks
Joe
would you be able to check my servers configuration when you get time. Its available here: http://yourpro.co.uk/phpinfo.php
Thanks
Joe
Is there a way to obtain the online status of the contacts when the script logs on?
The script isn't currently set up in a way that could easily tell you who is online and who isn't.
Having said that whilst getting the contacts it will likely also fetch details on who is online and who isn't.
Your best approach would be to alter the debug variable from 0 to 1 and look at the raw output. Each email address is on a separate line with some other values. One of those values may be online status of the contact. This is just a guess though as I haven't looked into this.
Having said that whilst getting the contacts it will likely also fetch details on who is online and who isn't.
Your best approach would be to alter the debug variable from 0 to 1 and look at the raw output. Each email address is on a separate line with some other values. One of those values may be online status of the contact. This is just a guess though as I haven't looked into this.
Hi, i've got this: Warnung: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /.need/msn_contact_grab.class.php (Zeile 372). My hoster wont turn safe_mode off. what can i do against this error? Anyway it seems that it's working. It outputs the complete contacts list.
Greetings,
Florian
Greetings,
Florian
Hi Florian
It's not a critical error so you could just turn off error reporting or just log them in a file rather than display them. This is a good idea for any 'production' site and not just this script.
Add error_reporting(0); at the top of the file to turn off error reporting. If you would prefer to log your errors to a file (something I would recommend) and have any difficulties setting it up just let me know.
It's not a critical error so you could just turn off error reporting or just log them in a file rather than display them. This is a good idea for any 'production' site and not just this script.
Add error_reporting(0); at the top of the file to turn off error reporting. If you would prefer to log your errors to a file (something I would recommend) and have any difficulties setting it up just let me know.
Hello, i would like to know if it is possible to show the contacts that has deleted me?, i mean only to show friends or emails that i have in my list but they dont have me on their list....sorry my bad english, thanks!
Hi Lucas
I've never thought to try that before. The script as it is at the moment certainly isn't set up to tell you that sort of information.
If you open up the class file you'll see near the top a variable called debug and if you change the value of that to 1 you'll get the raw data sent to and received from the MSN servers. The info you want will be in there somewhere (I'm assuming) but I don't know where.
I've never thought to try that before. The script as it is at the moment certainly isn't set up to tell you that sort of information.
If you open up the class file you'll see near the top a variable called debug and if you change the value of that to 1 you'll get the raw data sent to and received from the MSN servers. The info you want will be in there somewhere (I'm assuming) but I don't know where.
somebody have I script together, msn, hotmail, gmail,yahoo and working. i need to put in my website http://www.anunciefacil.com
Hi adriano,
The closest I've seen to that would be the 'meta' contact grabber I posted about recently but even that doesn't get contacts from hotmail.
The closest I've seen to that would be the 'meta' contact grabber I posted about recently but even that doesn't get contacts from hotmail.
Hello,
I have some trouble to connect to msn serveur but socket connexion are enabled in my host (i can see it with phpinfo)
Can someone help me to make it work?
Thanks
I have some trouble to connect to msn serveur but socket connexion are enabled in my host (i can see it with phpinfo)
Can someone help me to make it work?
Thanks
If sockets are enabled it may be that your host is blocking connections using some ports. I suggest you speak with you host and find out if this is the case.
If that isn't the problem then we can look into it further.
If that isn't the problem then we can look into it further.
I have spoken with my host and then told me that there no problem to connect to this servers throught this port.
Do you want me to send you by mail an adress where you can see phpinfo()?
Do you want me to send you by mail an adress where you can see phpinfo()?
If sockets are enabled and the ports are available for use I don't think phpinfo will tell me anything more.
If you can send me a link to the script itself and change the value of the debug variable near the top of the class file to 1 I'll take a look at that.
If you can send me a link to the script itself and change the value of the debug variable near the top of the class file to 1 I'll take a look at that.
can you give me your mail adress? and i'll send you the adress
and also i've put tje debug mode to 1 and there is nothing new ... there is the same message :
Could not connect to messenger service
I think that the problem comes from this part of the script :
if (!$this->fp = @fsockopen($this->server, $this->port, $errno, $errstr, 20)) {
die("Could not connect to messenger service");
}
and thats very strange because my host had assure me that " server is able to connect messenger.hotmail.com without any issues "
Could not connect to messenger service
I think that the problem comes from this part of the script :
if (!$this->fp = @fsockopen($this->server, $this->port, $errno, $errstr, 20)) {
die("Could not connect to messenger service");
}
and thats very strange because my host had assure me that " server is able to connect messenger.hotmail.com without any issues "
It's very odd that it is stopping that early. Again it suggests that it is a sockets/ports issue. I've just run the demo on this site and it is working fine so I don't think it is an issue on the msn side of things.
My email is jonathan@torrentialwebdev.com
My email is jonathan@torrentialwebdev.com
hi!
well might this sound stupid but first time i looked at the source code i found an error or at least possible error. i thinks it would be better to init the class-variable before calling it's function.
your code:
include('msn_contact_grab.class.php');
$msn->connect('username', 'password');
$msn = new msn;
$msn->rx_data();
$msn->process_emails();
$returned_emails = $msn->email_output;
i would write:
include('msn_contact_grab.class.php');
$msn = new msn;
$msn->connect('username', 'password');
$msn->rx_data();
$msn->process_emails();
$returned_emails = $msn->email_output;
i haven't tested the script yet but it looks strange in the example.
- Lowet
well might this sound stupid but first time i looked at the source code i found an error or at least possible error. i thinks it would be better to init the class-variable before calling it's function.
your code:
include('msn_contact_grab.class.php');
$msn->connect('username', 'password');
$msn = new msn;
$msn->rx_data();
$msn->process_emails();
$returned_emails = $msn->email_output;
i would write:
include('msn_contact_grab.class.php');
$msn = new msn;
$msn->connect('username', 'password');
$msn->rx_data();
$msn->process_emails();
$returned_emails = $msn->email_output;
i haven't tested the script yet but it looks strange in the example.
- Lowet
Hi Lowet
You're right. I've always used the qGrab function in the past, including in the example file, so never noticed.
I've updated the zip file.
Thanks.
You're right. I've always used the qGrab function in the past, including in the example file, so never noticed.
I've updated the zip file.
Thanks.
This is a neat script, however I noticed something very odd. I have only 98 people on my msn contact list. I used to have alot more, but I deleted them. Bear in mind, I only have 98 people on my list, but this script returned 433!!! All of the emails are recognizable and are, in fact, people I've deleted over the years, but I was not expecting this. This must mean that msn archives everything. It's cool, but I only want the list to return the updated and most recent version of my contact list. This is for a site that I'm developing and I know that this is definitely not something I would want users to see. When I delete someone, for example, I do not want any contact with them. That could pose a problem.
Wow. I hadn't realised that would be the case. I'll have to look into this further.
Thanks for the tip
Thanks for the tip
nice script, but I want to ask, if any know, can I steal man contacts from my contacts......i mean, is there any program, where i can write someone adress and fin his all contacts, that will be great..........if anything like that exist, plese contact me on msn:srna_tz@hotmail.com
Judging from my server logs a lot of people arrive here looking for ways to grab the password and/or contacts from someone else.
Basically my position is that without their permission grabbing their personal data is theft. I believe this is immoral and, although I'm not a legal expert, almost certainly illegal in the UK where I live.
It may well be that your intentions began honorably but as the saying goes, "Two wrongs don't make a right."
Basically my position is that without their permission grabbing their personal data is theft. I believe this is immoral and, although I'm not a legal expert, almost certainly illegal in the UK where I live.
It may well be that your intentions began honorably but as the saying goes, "Two wrongs don't make a right."
Yea, I know that is not absolutly ok, but I just want to find msn adress of one girl.......please if any can help me.....
Assuming you can't contact this girl directly by other methods I suggest you speak with your mutual friends, presumably these are the people whose contact lists you want, and ask them to either give you her address, give her your address or give her a message on your behalf with the hope that she will reply.
I know it can be easy to justify a small transgression to ourselves but you want to avoid a reputation of being happy to do the normally unacceptable when it suits you.
I know it can be easy to justify a small transgression to ourselves but you want to avoid a reputation of being happy to do the normally unacceptable when it suits you.
U dont understend, I dont want to have something with that girl, she is a girlfriend of my friend........and I want to say her some things about her boyfriend...........It will be an excelent trick....But I see that nobody can help me with this prob........
I want to get on my msn account and add a contact to my list..
Thanks heeps
Lilly Nestorovic
22/09/2008
Thanks heeps
Lilly Nestorovic
22/09/2008
Hello Lilly
This script only allows you to fetch contacts you already have in your messenger list.
Is there any reason why you can't use the official computer messenger?
This script only allows you to fetch contacts you already have in your messenger list.
Is there any reason why you can't use the official computer messenger?
I am getting a similar error to above. Did you guys get to a resolution at all?
Thanks.
Thanks.
Hello Jordan
What error are you getting? With 90 comments it is difficult to know what you are referring to.
What error are you getting? With 90 comments it is difficult to know what you are referring to.
Sorry... that was really stupid!
I'm getting "Could not connect to messenger service"
However, I have come to the conclusion that it is the host... as running it on localhost and that works.
One question thought... is there any way to stop the bot logging off straight away?
I can't quite work it out... i've tried using pfsockopen but that doesn't seem to stop the connection going...
I'm guessing it's something within the protocol!
Thanks!
I'm getting "Could not connect to messenger service"
However, I have come to the conclusion that it is the host... as running it on localhost and that works.
One question thought... is there any way to stop the bot logging off straight away?
I can't quite work it out... i've tried using pfsockopen but that doesn't seem to stop the connection going...
I'm guessing it's something within the protocol!
Thanks!
Sorry about that... i didn't realise the socket was opened twice in the script... i changed them both and it now works fine. Great script!
Thank you!
Thank you!
Hi Jordan
No worries. I'm glad you've figured out the issue.
Just out of interest why do you want to keep the sockets open?
No worries. I'm glad you've figured out the issue.
Just out of interest why do you want to keep the sockets open?
I'm looking to use it to get my status and stuff from MSN... so it needs to remain connected.
I'm currently using the original version from FlumpCakes... but I can't for the love of me figure the protocol out haha... I can see myself staring at the protocol and code for ages! So far... i managed to keep it logged in without timing out!
Jordan.
I'm currently using the original version from FlumpCakes... but I can't for the love of me figure the protocol out haha... I can see myself staring at the protocol and code for ages! So far... i managed to keep it logged in without timing out!
Jordan.
Thanks Jordan
That makes much more sense now.
I hope it goes well for you.
That makes much more sense now.
I hope it goes well for you.
Do you have any idea how you could send commands with $msn->_put... but keep the bot logged in?
If I run sample.php for example the bot will log in and remain logged in.
I want to run execute.php for example to send a SYN command. Possible?
Thank You!
If I run sample.php for example the bot will log in and remain logged in.
I want to run execute.php for example to send a SYN command. Possible?
Thank You!
If you're running it as a web page then the connection to the msn server will be closing each time the page finishes loading.
You can get around that by running it from the command line. If you really need the interface to be web based there are probably solutions you can hack together but it wouldn't be trivial.
You can get around that by running it from the command line. If you really need the interface to be web based there are probably solutions you can hack together but it wouldn't be trivial.
Hi,
I was just wondering inside the class is this var
$email_total = 100;
Does this mean it limits to getting a maximum of 100 contacts?
I was just wondering inside the class is this var
$email_total = 100;
Does this mean it limits to getting a maximum of 100 contacts?
Hi Robin
If I remember correctly that variable is changed to the total number of contacts available once that is known. The script then runs until all contacts are retrieved.
I'm not sure why I chose to initially set it to 100. It doesn't really matter though.
If I remember correctly that variable is changed to the total number of contacts available once that is known. The script then runs until all contacts are retrieved.
I'm not sure why I chose to initially set it to 100. It doesn't really matter though.
Hi All
I have faced a very weired problem here.
I logged in with this script and the contact list it grabbed me back was not the updated one.
I deleted some of the contacts from my list but they are still here and my complete list is also not grabbed.,
Can anyone tell this???
I have faced a very weired problem here.
I logged in with this script and the contact list it grabbed me back was not the updated one.
I deleted some of the contacts from my list but they are still here and my complete list is also not grabbed.,
Can anyone tell this???
Hello Fahad
I have come across something similar, though not identical, before. I've been unable to resolve the problem without causing the script to hang indefinitely.
I have come across something similar, though not identical, before. I've been unable to resolve the problem without causing the script to hang indefinitely.
Here i wrote a contact list importer in java that does not sign you out of msn:
http://code.google.com/p/contactlistimporter/
It uses hotmail to grab the contacts.
Gmail is also supported
http://code.google.com/p/contactlistimporter/
It uses hotmail to grab the contacts.
Gmail is also supported
i have this problem:
Fatal error: Call to undefined function curl_init() in C:\wamp\www\msn_contact_grab\msn_contact_grab.class.php on line 364
i dont know what is the error
if you can help me it will be great.
thanks
Diego.
Fatal error: Call to undefined function curl_init() in C:\wamp\www\msn_contact_grab\msn_contact_grab.class.php on line 364
i dont know what is the error
if you can help me it will be great.
thanks
Diego.
Hi Diego,
It looks as though you don't have the curl extension installed. This extension is required for authentication in the class.
It looks as though you don't have the curl extension installed. This extension is required for authentication in the class.
hi there thanks for the nice script but i am a little confused about how to actually use it and how can i send this script to any person and how would this script would help me to grab some one s contact list and where would i get the list??
plase how can u help me to gather contacts for my messenger so i can chart wiht people
Hi Jonathan,
I just uploaded your script to my server. However, it doesn't work. I don't know where it goes wrong, could you help me out? After entering the email and password, it returns to the usage.php page again without displaying any error message.
script: http://www.vanpeople.com/import/usage.php
server phpinfo:
http://www.vanpeople.com/import/phpinfo.php
Thanks in advance!
Tom
I just uploaded your script to my server. However, it doesn't work. I don't know where it goes wrong, could you help me out? After entering the email and password, it returns to the usage.php page again without displaying any error message.
script: http://www.vanpeople.com/import/usage.php
server phpinfo:
http://www.vanpeople.com/import/phpinfo.php
Thanks in advance!
Tom
Hi Tom
Apologies for the delay in getting back to you. It looks like you've taken the script down from your site.
If you need any help just let me know.
Apologies for the delay in getting back to you. It looks like you've taken the script down from your site.
If you need any help just let me know.

Judging from comments both here on the blog and on a few forums there is an appetite for a tutorial going right through from grabbing a visitor’s contact list to actually sending emails out to their contacts. Accordingly, here it is.Previously I have s
Tracked: Sep 25, 13:50
I seem to be getting a lot of visitors to my post presenting a script for grabbing an MSN messenger contact list. There have also been plenty of comments which is again good news. They have however brought up a few issues.Because different servers are s
Tracked: Oct 07, 22:26
Well it has been quite a while since I posted about my intention to create a web service for my MSN contact grabbing script. Unfortunately other commitments have meant I haven't been able to spend any time on this project until today. I've quickly throw
Tracked: Oct 23, 14:58
I've now updated the class I wrote to grab the contact list from MSN messenger. The new script should now fail 'gracefully' if there are any problems. This doesn't help anyone whose server was unable to run the original script (there is still the we
Tracked: Nov 17, 19:24
There have been a couple of requests for the source code to the msn contacts grab web service so that anyone interested can run the web service on one server they have access to while querying it from other servers they use. This sounds like a good idea
Tracked: Nov 27, 21:07
I rank well for the weirdest things. Recently I've been trying out some web analytics tools and I thought I would share some of my discoveries. I'm mainly going to talk about the search queries I rank well for. If you are interested then read on, if
Tracked: Dec 01, 15:46
There was an interesting article at 'The Register' today commenting on the potential dangers of 'Contact Us' forms. I bring it up because there was also a question asked today about the spam implications of the MSNM contacts fetching script. Many of the
Tracked: Feb 01, 23:12
I keep a fairly close eye on my server logs. It's a boring process but undoubtedly worth it. You never know what you might find. I've recently got a few visitors from mytton.net, the website for David Mytton. It turns out that he has recently been l
Tracked: Feb 03, 23:02
There have been a handful of people contact me recently stating that the MSNM contact fetching script doesn't work, or works poorly, with email addresses other than @hotmail.com. Addresses ending in @hotmail.co.uk, @hotmail.fr or none hotmail addresses w
Tracked: May 12, 10:16
Via phpdeveloper.org I track the latest phpclasses releases and given my work on contact grabbing scripts I was interested to see that a new contact grabber script has been posted. I haven't tried it yet but apparently it can connect to hotmail, yahoo,
Tracked: May 12, 12:54
Things have been quiet around here in terms of entries so to keep things rolling here are a few interesting links I've discovered over the past few days . . . Florian posted a comment over on the msn contact grab entry highlighting a warning error if
Tracked: May 25, 21:07