Login   Register  
PHP Classes
elePHPant
Icontem

File: Sample

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mohammad  >  My_Yahoo_Messenger  >  Sample  >  Download  
File: Sample
Role: Example script
Content type: text/plain
Description: sample file
Class: My_Yahoo_Messenger
Send and receive Yahoo messenger private messages
Author: By
Last change:
Date: 6 years ago
Size: 441 bytes
 

Contents

Class file image Download
<?php
/* Include My_Yahoo_Messenger Class */
include 'My_Yahoo_Messenger.php';

$MYM = new My_Yahoo_Messenger('Account ID''Account Password');

/* Get unreaded message from yahoo account */
$newMessage $MYM->getMessage();

echo 
'<b> New Message: </b><br />';
foreach( 
$newMessage as $from => $pm ) {
    echo 
"[ $from ]: $pm<br>";
}

/* send new message to yahoo account  */
$MYM->sendMessage('To Account''My Message');
?>