Location: PHPKode > scripts > AJAXPoll > tests/server.php
<?php
require_once ('../AJAX_Locking.php');

//require_once('../Driver/SharedMemory.php');
//$driver = new AJAX_Locking_Driver_SharedMemory('file', false, 3600);

//require_once('../Driver/MDB2.php');
//$names = array(
//   'table' => 'ajaxlocks',
//   'columns' => array(
//       'user' => 'username',
//       'time' => 'expire'
//   )
//);
//$driver = new AJAX_Locking_Driver_MDB2("mssql://test:test!@localhost/pubs", $names, 3600);

require_once('../Driver/File.php');
$driver = new AJAX_Locking_Driver_File('/tmp', 30);

$server = new AJAX_Locking($driver);
$server->registerJSLibrary('Locking','Locking.js', "../js/");

$server->handleRequest();
?>
Return current item: AJAXPoll