Source for file slow_server.php
Documentation is available at slow_server.php
* A server that adds artificial latency to requests
* @author Joshua Eichorn <josh@bluga.net>
* @copyright 2005 Joshua Eichorn
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @version Release: 0.5.4
* @link http://pear.php.net/package/HTML_AJAX
// include the server class
include 'HTML/AJAX/Server.php';
// don't add delays to client library requests
if (!isset ($_GET['client']) && !isset ($_GET['stub'])) {
if (!isset ($_SESSION['sleep']) || $_SESSION['sleep'] == 0 ) {
sleep($_SESSION['sleep']-- );
// extend HTML_AJAX_Server creating our own custom one with init{ClassName} methods for each class it supports calls on
// this flag must be set to on init methods
// init method for the test class, includes needed files an registers it for ajax
include 'support/test.class.php';
// init method for the livesearch class, includes needed files an registers it for ajax
include 'support/livesearch.class.php';
// init method for the testHaa class, includes needed files an registers it for ajax, directly passes in methods to register to specify case in php4
include 'support/testHaa.class.php';
// handle requests as needed
Documentation generated on Fri, 04 Apr 2008 18:30:26 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|