PHP Classes

File: chat.php

Recommend this page to a friend!
  Classes of PLSCIS PLP   Simple PHP Web Chat   chat.php   Download  
File: chat.php
Role: Application script
Content type: text/plain
Description: script which starts websocket php server
Class: Simple PHP Web Chat
Chat system with Websockets or AJAX as fallback
Author: By
Last change: changed role
Date: 10 years ago
Size: 394 bytes
 

Contents

Class file image Download
#!/usr/bin/php -q

<?php

error_reporting
(E_ALL);

require_once
'lib/Server.class.php';
require_once
'lib/Client.class.php';

set_time_limit(0);

date_default_timezone_set('Asia/Calcutta');

// variables
$address = '127.0.0.1';
$port = 11171;
$verboseMode = true;
$rootpath = '/var/www';

$server = new Server($address, $port, $verboseMode, $rootpath);
$server->run();

?>