Warning: require_once(Zend/Amf/Server.php) [function.require-once]: failed to open stream: No such file or directory in C:\AppServ\www\ZendAMP\gateway.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Amf/Server.php' (include_path='.;C:\php5\pear') in C:\AppServ\www\ZendAMP\gateway.php on line 2
的解法
其實也就是他找不到這個資料夾
要先到C裡面的php.ini
找到
;include_path = ".;c:\php\includes;
這一行
將;C:\php\library"貼到後面
並將最前面的;拿掉
會變成
;include_path = ".;c:\php\includes;C:\php\library"
要注意一下"的位置
然後再到php打上
<?php
require_once 'Zend/Amf/Server.php';
$server=new Zend_Amf_Server();
$server->addDirectory('AMFApp/');
$response = $server->handle();
echo $response;
?>
執行後即可看見見
Zend Amf Endpoint