| [ Index ] |
PHP Cross Reference of JPSpan 0.4 (beta) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: callstates_server.php,v 1.3 2004/11/23 14:10:56 harryf Exp $ 3 /** 4 * This is a remote script to call from Javascript 5 */ 6 7 require_once '../JPSpan.php'; 8 require_once JPSPAN . 'Server/PostOffice.php'; 9 10 //----------------------------------------------------------------------------------- 11 class SomeData { 12 13 function getLargeResult() { 14 $data = range('a','z'); 15 $data = implode('',$data)."\n"; 16 $result = ''; 17 for($i=0;$i<10000;$i++) { 18 $result.=$data; 19 } 20 return $result; 21 } 22 23 } 24 25 $S = & new JPSpan_Server_PostOffice(); 26 $S->addHandler(new SomeData()); 27 28 //----------------------------------------------------------------------------------- 29 if (isset($_SERVER['QUERY_STRING']) && strcasecmp($_SERVER['QUERY_STRING'], 'client')==0) { 30 31 //define('JPSPAN_INCLUDE_COMPRESS',TRUE); 32 $S->displayClient(); 33 34 } else { 35 36 require_once JPSPAN . 'ErrorHandler.php'; 37 $S->serve(); 38 39 } 40 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Nov 26 11:42:46 2004 | Cross-referenced by PHPXref 0.6 |