Category: Web Application Development
-
Post Views: 13 1. Install yii2-starter-kit under Windows 10 and Nginx 1.10, and run on the command line: php console/yii app/setup, as shown in Figure 1 2. Error: create unique index IDx_article_slug on {{%article}} (slug) …exception: sqlstate[42000]: Syntax error or access Violation: 1071 specific key was too long; max key length is 767 bytes, as shown in Figure 2 Translation:…
-
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: 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: 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: 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: 12 1. Copy Discuz_x3.2_sc_utf8/upload/uc_server/lib/dbi. class.php to ucenter_1.6.0_sc_utf8/lib/dbi.class.php 2. Edit ucenter_1.6.0_sc_utf8/model/base.php function init_db() { //require_once uc_root.lib/db.class.php; if(function_exists(“mysqli_connect”)) { require_once UC_ROOT.lib/dbi.class.php; } else { require_once UC_ROOT.lib/db.class.php; } $this->db = new ucserver_db(); $this->db->connect(uc_dbhost, uc_dbuser, uc_dbpw, uc_dbname, uc_dbcharset, UC_DBConnect, UC_DBTablePre); } 3. Copy the class of discuz_x3.2_sc_utf8/upload/uc_server/api/dbbak.php dbstuffi to ucenter_1.6.0_sc_utf8/api/dbbak.php 4. Edit ucenter_1.6.0_sc_utf8/api/dbbak.php 5. Enable the mysqli extension in uc_client, copy discuz_x3.2_sc_utf8/upload/u…
-
Post Views: 11 1. ;extension=php_mysql.dll, disable mysql extension in php.ini; 2. In the function dependency check, mysqli_connect is supported; 3. After installation, open the blank; 4. Delete the program file, copy the file to the installation directory, edit discuz_x3.2_sc_utf8/source/class/discuz/discuz_database.php, and find the function quote, modify, because it does not make the judgment of extended support: tiveting if (is_string($str)) return\. mysql_escape_string($str)…