Tag: Hprose for PHP
-
Post Views: 37 1. Implement the corresponding RPC service of the page in the RPC directory, create a remote procedure call HTTP server, and create a new \RPC\Controllers\ServerController.php 2. Create a new page model \rpc\models\page.php 3. Create a new page controller, \rpc\controllers\pagecontroller.php 4. Then open the URL on the browser side:http://rpc.github-shuijingwan-yii2-app-advanced.localhost/page/create, see the following output: Fa2{u#s11″page_create”}z, as expected 5. Create…
-
Post Views: 13 1. Composer has been installed, update composer to the latest version, execute the command, the result is as shown in Figure 1: composer self-update Error: warning: modulembstringAlready loaded in unknown on line 0 2. In php.ini, it is found that extension=php_mbstring.dll is loaded twice, and the 1007 line is commented out, as shown in Figure 2 and…
-
Post Views: 41 1. Open: https://github.com/hprose/hprose-php/blob/master/readme_zh_cn.md, download hprose for php; 2. Take http://www.hprose1.com/http_server.php as the server, and the running result is shown in Figure 1: 3. Take http://www.hprose2.com/http_client.php as the client, the running result is shown in Figure 2: An error is reported: 4. Set in the php.ini file: always_populate_raw_post_data = -1, with http://www.hprose2.com/http_client.php as the client, the result of…