入口文件中有define('THINK_MODE','PHPRPC');
这个是客服端的test.php代码:
<?php
include ("../phprpc_3.0.1_php/phprpc_client.php");
$client = new PHPRPC_Client('http://127.0.0.1/www/index.php?m=Test');
echo $client->hello();
?>
这个是服务端的代码:
<?php
class TestAction extends Action{
function hello() {
return 'Hello ' . $name;
exit;
}
}
?>
当我执行test.php页面时提示404,求教这是说明情况
最佳答案
