Tag: PHP
-
Post Views: 17 1. You need to refer to the previous website:https://www.shuijingwanwq.com/2016/07/09/1129/; 2. To obtain the implementation of the mobile phone registration verification code, it needs to only support the client version of mainland China before it is compatible. Therefore, the national area code ID is allowed to be empty, and the default value is 0, as shown in Figure…
-
Post Views: 14 1. When the debugging session is started, a set of debugger windows will be opened under the main editor window. In the debugger window, it keeps prompting waiting for the connection (netbeans-xdebug), as shown in Figure 1; 2. Analysis and discover the “debugging” tab of the “php” option, the session ID (session ID). Any name of the…
-
Post Views: 13 1. Based on the authorization of WeChat webpage, the nickname obtained: 🌵yangqin🍬✨, as shown in Figure 1: 2. The relevant information of WeChat users obtained, as shown in Figure 2: 3. The first solution, in order to make mysql support the storage of letters, modify the collation as: utf8mb4_general_ci, as shown in Figure 3: 4. The execution…
-
Post Views: 12 1. The first connection is selected, as shown in Figure 1: 2. Due to the instance type: I/O optimization, disk type: SSD cloud disk, so refer to the URL:https://help.aliyun.com/knowledge_detail/6689611.html 3. The download link of auto_fdisk_ssd.sh, as shown in Figure 2: http://aliyun_portal_storage.oss-cn-hangzhou.aliyuncs.com/help%2Fecs%2Fauto_fdisk_ssd.zip?spm=5176.776689611.0.0.DmH9za&file=help%2Fecs%2Fauto_fdisk_ssd.zip 4. Download tool: auto_fdisk_ssd.sh, after pasting the download link, you need to modify it, as shown…
-
Post Views: 12 1. Continue to the previous article:https://www.shuijingwanwq.com/2016/04/16/1006/ 2. Execute the command, as shown in Figure 1, and report an error, indicating that yum has failed to execute. The following methods can be solved: yum -y install wget screen python #for centos/redhat 3. According to the analysis, it should be the error caused by the network connection failure, execute…
-
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…
-
Post Views: 13 1. Open the URL:http://redis.io/download, windows The Redis project does not officially support Windows. However, Microsoft Open Technology Group has developed and maintained a Redis version for Windows 64-bit. as shown in Figure 1 2. The URL is linked to:https://github.com/MSOpenTech/redis According to the prompt, you canhttp://github.com/MSOpenTech/redis/releasesDownload to the latest binary file, as shown in Figure 2 3. Download…
-
Post Views: 53 1. Enter in the Baidu search box: in the middle of the poor If you want a grenade, you have to be in the grenade, you need it on the right, and the final search results are as follows: 2. Write the function qstrlen, the code is as follows: /** * dstrlen // kcuc * @param string…
-
Post Views: 11 1. Based onhttps://github.com/Filsh/yii2-oauth2-server实现; Run: php composer.phar require –prefer-dist filsh/yii2-oauth2-server “*” 2. Configure in the application: E:\wwwroot\api.hmwis.com\passport\config\main.php Modules=>[ oauth2=> [ class=>FILSH\Yii2\OAuth2Server\Module, tokenparamname=>accessToken, TokenAccessLifeTime=> 3600 * 24, StorageMap=> [ user_credentials=>common\models\user, ]#ATFP_CLOSE_Translate_span#, GrantTypes=>[ user_credentials=> [ class=>oauth2\grantType\usercredentials, ]#ATFP_CLOSE_Translate_span#, refresh_token=>[ class=>oauth2\grantType\refreshtoken, Always_issue_new_refresh_token=> true ]#ATFP_CLOSE_Translate_span# ] ], v1=>[ class=>passport\modules\v1\module, ]#ATFP_CLOSE_Translate_span#, ], 3. Edit the user model class User.php: E:\wwwroot\api.hmwis.com\common\models\user.php Implement the interface\OAuth2\Storage\UserCredentialsInterface Class…
-
Post Views: 12 1. inhttps://phpunit.de/下载StableRelease: 2. Copy phpunit.phar to c:\php-5.4.42, c:\php-5.4.42 is the installation directory of php: 3. Run php phpunit.phar in cmd –version, php phpunit.phar successfully: