- 论坛徽章:
- 0
|
好像都不大行啊,chown -R改回root
再chmod -R 0664(0444) /usr/share/php
还是出错~
====================
Warning: include_once(Benchmark/Timer.php) [function.include-once]: failed to open stream: No such file or directory in /home//zend/showTimer.php on line 2
Warning: include_once() [function.include]: Failed opening 'Benchmark/Timer.php' for inclusion (include_path='.:/usr/share/php') in /home/zend/showTimer.php on line 2
Fatal error: Class 'Benchmark_Timer' not found in /home/zend/showTimer.php on line 4
=======================
书上照抄的代码
<?php
include_once "Benchmark/Timer.php";
$timer1 = new Benchmark_Timer();
$timer2 = new Benchmark_Timer();
$timer1->start();
//$time->setMarker('Mark 1');
echo "Helo,World<br>";
sleep(1);
$timer2->start();
sleep(1);
$timer1->setMarker("mark 1");
echo "timer1 's time from start to mark:_";
echo $timer1->timeElapsed("Start","mark 1");
echo "---";
sleep(1);
echo "<br>1 timers run";
$timer1->stop();
$timer1->display();
echo "<br>2 timers run";
$timer2->stop();
$timer2->display();
?>
[ 本帖最后由 wshd 于 2006-11-23 15:14 编辑 ] |
|