Year: 2015
-
Post Views: 13 1. Program screenshots, New Imagick: 2. Error when the browser runs: Unable to read the file 3. Run the command: rpm -qa | grep ghostscript, find that the gs software is not installed, run the command: yum install ghostscript 4. The file is successfully uploaded, and the corresponding png picture is successfully generated:
-
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: 9 1. Baidu webmaster platform page optimization suggestion, prompt to enable gzip compression 2. Enable gzip compression details 3. The GZIP support format of OSS does not contain text/javascript 4. CDN page optimization gzip support format includes text/javascript 5. Submit the work order, and after investigation, the current page optimization switch is abnormal, resulting in the GZIP under…
-
Post Views: 9 1. When returning to 404, the footer of the web page displays: Apache/2.2.15 (CentOS) server at zhidao.hmwis.com Post 80 2. Edit the httpd.conf file ServerSignature on Modified to: # serversignature on ServerSignature Off 3. When returning 404, the web footer no longer displays the corresponding information 4. Check the response head in Taobao’s message header, server:”nginx” 5.…
-
Post Views: 11 1. Introduction to SSL certificate installation environment: Operating system: CentOS 6.5 64-bit apache2.2.15 Wotong Free SSL Certificate 2. Network environment requirements http://api.ygt.cmIt can be accessed normally through the external network 3. Obtain an SSL certificate After successfully applying for a certificate in Wotong, you will get a compressed file with a password, enter the certificate password and…
-
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. The address of the REST API application with OAuth2 Server on Yii2:https://github.com/ikaras/yii2-oauth2-rest-template 2. Run the command: php application/api/yiic migrate –migrationpath=@vendor/filsh/yii2-oauth2-server/migrations –interactive=0 \ Error: 3. Modify the file: \yii2-oauth2-rest-template\vendor\filsh\yii2-oaut h2-server\migrations\m140501_075311_add_oauth2_server.php 4. Run the command again: php application/api/yiic migrate –migrationpath=@vendor/filsh/yii2-oauth2-server/migrations –interactive=0\ , normal operation:
-
Post Views: 5 1. Open the URL,http://www.yiiframework.com/download/,根据提示执行升级: 2. Execute the command: php composer.phar require yiisoft/yii2 2.0.6, report an error: [UnexpectedValueException] Could not parse version Constraint <=2.*: Invalid version string “2.*” 3. Execute commands one after another: composer self-update, composer global update; 4. Execute the command again: composer global update; 5. Execute the command again: php composer.phar require yiisoft/yii2 2.0.6, the…
-
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: