処理の進行状況を表示する。

  1. <?php
  2. require_once ('../code/CTI/DriverManager.php');
  3.  
  4. //セッションの開始
  5. $session cti_get_session('ctip://localhost:8099/',
  6.     array('user' => 'user',
  7.     'password' => 'kappa'));
  8.     
  9. //出力しない
  10. $session->set_results(new SingleResult(new NullBuilder()));
  11.  
  12. function progress($length$read{
  13.   echo "$read / $length\n";
  14. }
  15. $func 'progress';
  16. $session->set_progress_func($func);
  17.  
  18. //リソースのアクセス許可
  19. $session->property('input.include''http://www.w3.org/**');
  20.     
  21. //文書の送信
  22. $session->transcode('http://www.w3.org/TR/xslt');
  23.  
  24. //セッションの終了
  25. $session->close();
  26. ?>

Documentation generated on Tue, 15 Mar 2011 20:23:24 +0900 by phpDocumentor 1.4.1