PHP Classes

File: Sample

Recommend this page to a friend!
  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: 15 years ago
Size: 441 bytes


Class file image Download
/* 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();

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

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