This should work, pretty basic to grab your status. There is most likely another (better) method to do this.
If it was me, Id just make a MSN Plus script to hit a url stating my current status (Online, Away, Busy, Offline) or Id set this script to run every 15-30 minutes and update a text file.
<?php
$msnAddress = '
[email protected]';
$checkAddress = 'http://www.checkmsnstatus.com/status.php?of=msn';
$curlSession = curl_init( $checkAddress );
curl_setopt( $curlSession, CURLOPT_POST, 1 );
curl_setopt( $curlSession, CURLOPT_POSTFIELDS, 'c=' . $msnAddress );
curl_setopt( $curlSession, CURLOPT_FOLLOWLOCATION, 1 );
curl_setopt( $curlSession, CURLOPT_RETURNTRANSFER, 1 );
$curlResponse = curl_exec( $curlSession );
curl_close( $curlSession );
if( strstr( $curlResponse, 'Online' ) )
{
echo $msnAddress . ' is online.';
}
else
{
echo $msnAddress . ' is offline';
}
?>
That worked perfectly!
Just for reference how would I go about the msn+ script?
Luke