Category: PHP 5.4
-
Post Views: 13 1. You need to implement this URL first:https://www.shuijingwanwq.com/2014/12/26/439/ 2. Uninstall the current PHP version and execute the command, as shown in Figure 1: yum remove php* 3. Install the php5.6 version and execute the command, as shown in Figure 2: yum install php-mysqlnd php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-cli php-common php-devel php-mbstring php-mcrypt php-soap php-bcmath…
-
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: 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: 13 1. The $QUERY code implements screenshots: 2. Error: sqlstate[HY093]: Invalid parameter number: number of bound variables not match number of tokens\nthe sql being executed was 3. After the $query is modified, the screenshot is realized, and the $query->addParams is cancelled: 4. $Query is successfully implemented
-
Post Views: 11 1. Screenshot of the code that can be verified successfully under Windows 8.1: 2. When the RESTClient test under FIFEFOX of CentOS, the verification fails: 3. Analyze the code and find that the loading intl extension failed: 4. Run the command on CentOS: yum install php-intl to install the intl extension: 5. The intl installation is successful,…
-
Post Views: 16 1. You need to implement this URL first:https://www.shuijingwanwq.com/2014/12/26/439/ 2. The current php version is php 5.3.3 3. Edit /etc/yum.repos.d/remi.repo, set[remi]Enabled=1 below,[remi]Indicates php 5.4 version, there are 5.5 and 5.6 below, here use 5.4 4. Execute the yum repolist command to see if the remi source is added successfully 5. Uninstall PHP 5.3.3 related programs 6. Install the…
-
Post Views: 14 1. Since it is ready to use the Yii 2.0 framework, which requires PHP 5.4 or later, it is decided to upgrade the PHP version; 2. The current environment is: Windows 8.1 64, Apache 2.2.25 (http://www.apache.org/)、MySQL-5.5.28、PHP-5.3.5、phpMyAdmin-4.2.9.1; 3. Prepare to upgrade to: Windows 8.1 64, Apache 2.4.12 (http://www.apachelounge.com/)、MySQL-5.5.28、PHP-5.4.42、phpMyAdmin-4.2.9.1,主要是将PHP升级为5.4.42,Apache从VC6编辑的转换为VC9编译的,且升级为2.4.12; 4. Open the URL:http://windows.php.net/download/#php-5.4-ts-VC9-x86, download php-5.4.42-win32-vc9-x86.zip; 5. Read the prompt…