PHP Classes

File: nchat.php

Recommend this page to a friend!
  Classes of PLSCIS PLP   Simple PHP Web Chat   nchat.php   Download  
File: nchat.php
Role: Application script
Content type: text/plain
Description: normal request handler file for fetching new chat messages
Class: Simple PHP Web Chat
Chat system with Websockets or AJAX as fallback
Author: By
Last change: changed role and description
Date: 10 years ago
Size: 420 bytes
 

Contents

Class file image Download
<?php
// session_start();
ob_start();
include_once(
'common.php');
//
$type = $_GET['type'];
$name = $_GET['param'];
include_once(
$site_path.'classes'.DIRECTORY_SEPARATOR.'class.Messages.php');
$msg_obj = new Messages();
$return_val = $msg_obj->fetchMessages($name, $type);
exit;
// need a cron that will run every certain min to insert messages from file entries into db and upon insert delete those files
?>