Category: PHP
-
Post Views: 17 1. Check the search model file: /common/logics/weiboWeiBoConnectWebAppUsersarch.php. 7. Edit method entry file: /weibo/rests/weibo_weibo_connect_web_app_user/indexaction.php. Implement the search and sorting of the channel_app_task_count. The inclusion of channel_app_task_count is prerequisite for the channel_app_task field status of 6. 2. View the method entry file: /weibo/rests/weibo_weibo_connect_web_app_user/indexaction.php.
-
Post Views: 13 1. In the topic selection list page, whether it has been extended, 0: no; 1: Yes, this field does not exist in the topic selection table. is calculated by program. $time is the current Beijing time, calculated by the server. as shown in Figure 1 2. In the latest version of the prototype, you need to support…
-
Post Views: 12 1. In CakePHP v2.6.4, an error is reported: sqlstate[HY000][2002]connection timed out. as shown in Figure 1 2. Print the database connection information and find that the host address is the intranet IP, and the container cannot be accessed 3. Adjust to the external network IP, print the database connection information, and the container can be accessed normally.…
-
Post Views: 17 1. Error: call to undefined function international\image\gd\imagecreateFromJPEG(). as shown in Figure 1 2. Check phpinfo and find that the gd library does not support jpeg format. as shown in Figure 2 3. By upgrading the basic image of the container, check phpinfo, and add the value of jpeg support to Enabled. The GD library already supports the…
-
Post Views: 23 1. At this stage, there is a new requirement, and it is necessary to do some initial data work for the product when deploying the product. Prepare the corresponding SQL file, but for the file path in the MySQL table: /upload/20200817/20203555555373.png. It is stored in NAS storage. rather than the program directory. as shown in Figure 1…
-
Post Views: 13 1. In Yii 2.0, the realization of health check, a colleague implemented a version before, I feel that it is necessary to adjust it again 2. The analysis code found that yii::$app->db->getisActive() is unnecessary. View the source code of the corresponding method separately. The related implementation of $this->pdo in getIsActive() already exists in open() . 3. Analyze…
-
Post Views: 17 1. In phpstorm prompt: Invalid vcs root mapping. The directory <project>\vendor\wartron\yii2-uuid is registered as a git root, but no git repositories were found there. as shown in Figure 1 2. Click Configure to enter the configuration interface. Discover: Vendor\Wartron\Yii2-UUID is marked red. as shown in Figure 2 3. Reference URL:https://www.shuijingwanwq.com/2020/05/11/4130/. The reason is that the directory is…
-
Post Views: 15 1. Based on the function: file_put_contents, when a string is written to the file, there are various forms in the group when defining the file name to be written to 2. Under different forms, the problem is that with the change of the running environment of the program, the file name of the written data is also…