Year: 2016
-
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…
-
Post Views: 14 1. In OneThink (ThinkPHP3.2.3), integrate the PHP-SDK2.0.4 of Alibaba Cloud OSS to realize direct transfer on the web, and the server-side signature is directly transmitted and uploaded callbacks, provided that you first refer to:https://www.shuijingwanwq.com/en/2016/01/13/10177/Implementation, set the CORS of Bucekt (Storage4-HMWIS-COM), as shown in Figure 0; 2. Check the practice of direct transmission on the web side of…
-
Post Views: 57 1. SDK installation github address: https://github.com/aliyun/aliyun-oss-php-sdk 2. Copy aliyun-oss-php-sdk-master\src\oss to passport.hmwis.com\thinkphp\library\vendor\oss, as shown in Figure 1 and 2 3. Register a new namespace OSS and edit the file passport.hmwis.com\application\common\conf\config.php, as shown in Figure 3 autoload_namespace=> array(additions=>OneThink_Addon_Path,oss=> Vendor_Path.oss), // Extension Module List 4. When instantiating the class library below the OSS, such as new oss\ossclient(); The corresponding class…
-
Post Views: 15 1. The premise is to install Redis under Windows 8.1, and the configuration supports the implementation process of PHP:https://www.shuijingwanwq.com/2015/11/16/769/ Set which IPs the Redis server allows access and passwords, as shown in Figure 1 and 2: BIND 127.0.0.1 192.168.2.30 requirepass n#s7yle$r5s&mmp#w9k9*hjzaptu%hpq Command: service redis restart, restart the redis service; 2. Set the php.ini of the web…