Sending Messages to MSN Direct Watch (fsockopen error)
Posted: Sun Mar 18, 2007 11:24 am
Hello. I am trying to send messages to an MSN Direct watch using code from Spotdev.net
The first part of the code requires making a connection to the MSN server:
However, when I try to run that, I get this error:
Any idea why I can't establish a connection when I run the code on my server?
Thanks
Tom
The first part of the code requires making a connection to the MSN server:
Code: Select all
function SendMessages( $passport, $password, $messages ){
//get the correct login first
$socket = fsockopen( "messenger.hotmail.com", 1863, $errno, $errstr, 30);
stream_set_timeout( $socket, 5 );I know that the code works, because there is a successful implementation of it here; when I enter my MSN passport info into that form, the message comes though fine.Warning: fsockopen() [function.fsockopen]: unable to connect to messenger.hotmail.com:1863 (Connection refused) in /home/tomsmith/public_html/test/SendMessages.php on line 33
Warning: stream_set_timeout(): supplied argument is not a valid stream resource in /home/tomsmith/public_html/test/SendMessages.php on line 34
Any idea why I can't establish a connection when I run the code on my server?
Thanks
Tom