Category: PHP 7.2
-
Post Views: 49 1. Composer detected issues in your platform: your composer dependencies require a php version “>= 7.3.0”.. Composer detects a problem in your platform: your composer dependency requires the PHP version of “>= 7.3.0”. as shown in Figure 1 2. The root cause is that the program needs to be deployed on the cloud server of Huawei Cloud’s…
-
Post Views: 17 1. In K8s, the container has no restart options, as shown in Figure 1 2. In non-K8s, the container has a restart option, modify the php file before, and the container will automatically take effect after restarting. as shown in Figure 2 3. Edit the php file and output some information, as shown in Figure 3 4.…
-
Post Views: 14 1, CMCConsoleUser/ActionSync, existing implementation, reference:https://www.shuijingwanwq.com/2020/03/02/3964/, now need to add parameters: tenant ID 2. The parameter will be passed to the action method corresponding to the requested subcommand. Set the default value of the parameter $groupid to null 3. Determine whether the $groupId is empty, if it is not empty, and it does not exist in $HttpCMCAPiGroupIds, it…
-
Post Views: 13 1. The request interface, the total number of resources in the response parameters is 30. Resources containing ids equal to 37918 are duplicates. A total of 2. as shown in Figure 1 2. Check the model class, /common/models/redis/cmc_console/user.php 3. Check /common/components/redis/activerecord.php , which defines the prefix and applies to all AR keys. 4. Open RedisDesktopManager, check the…
-
Post Views: 17 1. When multiple database connection components have been added in Yii 2.0 2. When statdb is selected for the database connection ID, only the data table under statdb will appear in the drop-down list of the table name, as shown in Figure 1 3. When the model file under statdb is generated, getdb() is additionally generated, as…
-
Post Views: 12 1. GetID3() is a PHP script that extracts useful information from MP3 and other multimedia file formats. Open URL:https://github.com/JamesHeinrich/getID3 2. Install based on composer: jamesheinrich / getid3. The URL to open the PHP package repository:https://packagist.org, search: jamesheinrich / getid3 , get the search result: james-heinrich/getid3, as shown in Figure 1 3. In PowerShell, execute the installation command:…
-
Post Views: 17 1. Docker deployment, the implementation of Crontab (Bash Sleep) based on Supervisor, to reduce memory usage, refer to:https://www.shuijingwanwq.com/2019/10/12/3555/. /console/controllers/cmcConsoleUserController.php 2. Break ends the execution of the current Foreach structure, that is, each run of the command line, only the user list under the tenant is successfully synchronized. When there are too many tenants, suppose 100 tenants, the…