New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用了httpserver和httpclient做测试,然后报错了 #26
Comments
你复制到是旧的 README 的代码,新的 README 中并没有代码。 新版本的文档在这里:https://github.com/hprose/hprose-php/wiki 你的客户端代码只需要这样修改一下就可以了: <?php
require_once('hprosesrc\Hprose.php');
$client = new HproseHttpClient('http://127.0.0.1/helloserver.php', false);
echo $client->hello('World'); |
吐血,加了个参数果然可以了,我看的是这个路径 https://github.com/hprose/hprose-php/tree/87a4e1bdc5b360096634b3a3f8d49074643624a3 和doc文档里面的案例。 这个最好还是统一一下比较好。 |
你看的是 github 的历史记录,历史的内容改不了。 |
@andot 对于THINKPHP这种框架,怎么加入controller中的method呢? |
发布的服务最好单独编写,把 Controller 中的方法发布为服务这种做法是不合适的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
代码都是直接从readme里面取的,稍微调整了一下,server正常,client报错了
server
client
错误提示
环境是windows php5.4.16
The text was updated successfully, but these errors were encountered: