Comments (5)
你复制到是旧的 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');
from hprose-php.
吐血,加了个参数果然可以了,我看的是这个路径 https://github.com/hprose/hprose-php/tree/87a4e1bdc5b360096634b3a3f8d49074643624a3 和doc文档里面的案例。
这个最好还是统一一下比较好。
from hprose-php.
你看的是 github 的历史记录,历史的内容改不了。
from hprose-php.
@andot 对于THINKPHP这种框架,怎么加入controller中的method呢?
from hprose-php.
发布的服务最好单独编写,把 Controller 中的方法发布为服务这种做法是不合适的。
from hprose-php.
Related Issues (20)
- PHP7.4 下2.0版本数组语法问题 HOT 3
- 系统安装 HOT 1
- Es17"Wrong Request: "z,请问各位大神这个是怎么回事呀 HOT 5
- 3.0版本的client计划支持批量调用吗? HOT 1
- 2.0按照示例做报错啊Exception Argument func must be callable. HOT 2
- 报错 找不到这个类 Hprose\BytesIO HOT 3
- 怎么重启已经启动的tcp服务 HOT 1
- 协程Future\co,yield偶发返回promise对象。 HOT 2
- hprose能否支持stream响应,在获取数据量很大时候用 HOT 4
- php服务端如何获取ip? HOT 2
- composer怎么安装v3.0的版本 HOT 1
- request write error? HOT 2
- 服务端抛出系统异常没有经过Filter怎么办? HOT 3
- 找不到类“Hprose\Socket\Service” HOT 2
- php8.1.4 编辑 hprose1.8.0扩展报错 HOT 2
- php8+支持吗,扩展一直装不成功 HOT 1
- 请求返回错误,数据太大了 ?“18: transfer closed with 332804 bytes remaining to read” HOT 3
- Hprose\Socket\Transporter->syncSendAndReceive('Cs11"..) HOT 1
- 本地Mac命令行启动正常,线上环境Ubuntu启动马上退出
- hprose 客户端怎么管理服务端的事务呢? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hprose-php.