Giter Site home page Giter Site logo

Comments (5)

andot avatar andot commented on May 3, 2024 1

你复制到是旧的 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.

kkshow avatar kkshow commented on May 3, 2024

吐血,加了个参数果然可以了,我看的是这个路径 https://github.com/hprose/hprose-php/tree/87a4e1bdc5b360096634b3a3f8d49074643624a3 和doc文档里面的案例。

这个最好还是统一一下比较好。

from hprose-php.

andot avatar andot commented on May 3, 2024

你看的是 github 的历史记录,历史的内容改不了。

from hprose-php.

yesterday679 avatar yesterday679 commented on May 3, 2024

@andot 对于THINKPHP这种框架,怎么加入controller中的method呢?

from hprose-php.

andot avatar andot commented on May 3, 2024

发布的服务最好单独编写,把 Controller 中的方法发布为服务这种做法是不合适的。

from hprose-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.