Login   Register  
PHP Classes
elePHPant
Icontem

File: getmessage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Harish Chauhan  >  Chat Class  >  getmessage.php  >  Download  
File: getmessage.php
Role: Example script
Content type: text/plain
Description: example
Class: Chat Class
Chat room management with talks stored in files
Author: By
Last change: Wrong file is uploaded
Date: 9 years ago
Size: 477 bytes
 

Contents

Class file image Download
<?php
    
@session_start();
    include_once(
"chat.inc.php");
    
$mychat=new Chat($_REQUEST['room']);
    
    
//$message=$mychat->getMessageForUser($_SESSION['SES_USER_NAME']);
    
$message=$mychat->getMessage();
    
$users=$mychat->getUsers();
    if(!empty(
$message))
    {
?>
var mydiv=new getObj('msgbox');
mydiv.obj.innerHTML="<?=$message?>";
var userbox=new getObj('userbox');
userbox.obj.innerHTML="<?=$users?>";

mydiv.obj.scrollTop=10000;
mydiv.obj.scrollTop=10000;
<?php }?>