PHP Classes

File: chat/testcorsajax2.php

Recommend this page to a friend!
  Classes of Free Ment   PHP Live Chat Browser   chat/testcorsajax2.php   Download  
File: chat/testcorsajax2.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Live Chat Browser
Live chat with users of the same or another site
Author: By
Last change:
Date: 1 year ago
Size: 366 bytes
 

Contents

Class file image Download
<?php

define
('DS', '/');
include(
'..' . DS . '..' . DS . 'LOM' . DS . 'O.php');
$O = new O($to . '.xml');
$O->_new('<message><source>' . $source . '</source><from>' . $from . '</from><time>' . $time . '</time><text>' . $message . '</text></message>');
print(
'<div title="' . date('Y-m-d H:i:s', $time) . '">' . $from . ': ' . $message . '</div>
'
);
$O->save();

?>