Category: Programming Language
-
Post Views: 14 1. The number of request parameters is 1136, as shown in Figure 1 2. Error in PHP 7.2: MB_parse_str(): Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. as shown in Figure 2 3. MAX_INPUT_VARS Indicates how many input variables are accepted (limits apply to the $_GET, $_POST and $_COOKIE hyperglobal variables, respectively) The…
-
Post Views: 12 1. Reference URL:https://www.php.net/manual/zh/function.memory-get-usage.php 2. Based on an example of memory_get_usage(), after adjustment, as shown in Figure 1, the code is as follows: 3. The execution result, unset() is effective for reducing the amount of memory actually used by the php script. 4. In Yii 2.0, run the same code, check the memory usage of the debug data,…
-
Post Views: 15 1. In Yii 2.0, an error is reported: “Calling unknown method: API\modules\v1\models\plantask::claimProcess()”, as shown in Figure 1 2. View the \API\modules\v1\models\plantask.php file, the code is as follows 3. To view the \common\logics\plantask.php file, the method ClaimProcess is defined as private (private), and it can only be accessed by the class where it is defined. The code is…
-
Post Views: 17 1. Obtain the topic details interface, the operation permission of the topic includes all the permission buttons of the current user, which can be customized for the mobile terminal 2. Edit method file: \api\rests\plan\viewaction.php, get the controller ID (yii::$app->controller->id), when its route is: /v1/plans/2, its value is: plan, as shown in Figure 1 3. Edit the method…
-
Post Views: 14 1. Open the desktop application terminal, the interface, as shown in Figure 1 2. Interface: my topic selection (get a list of topics), the response structure in postman, as shown in Figure 2 3. Prototype design on the mobile application side, as shown in Figure 3 4. At this stage: the subsequent iterative development stage, the desktop…
-
Post Views: 15 1. The data structure of the A table, as shown in Figure 1 2. The data structure of the B table, as shown in Figure 2 3. The current requirement is that 8 fields in the A table need to be queried, inserted into the B table, and the following commands are used to create a new…
-
Post Views: 13 1. Check the relevant information of phpinfo(), and confirm to download the version of xdebug, VC15 x64 Thread Safe, as shown in Figure 1 2. Open the URL:https://xdebug.org/download.php, download PHP 7.2 VC15 TS (64 bit), as shown in Figure 2 3. Copy php_xdebug-2.7.1-7.2-vc15-x86_64.dll to C:\php-7.2.14\ext\php_xdebug.dll, in Add a new line to php.ini, restart php 4. Check the…
-
Post Views: 46 1. Execute the command and report an error: php warning: strpos(): empty needle in E:\WWWRoot\PCS-API\Vendor\yiisoft\yii2\log\target.php on line 243, as shown in Figure 1 2. View \console\runtime\logs\app.log 3. Edit on the command line 4. Edit on the command line. Once an exception is thrown in the console command line, when writing to the log, an error will be…
-
Post Views: 13 1. Open the URL:http://www.aaaacn.net/wp-admin/install.php,报错:HTTPError 500, as shown in Figure 1 2. Open the URL:http://www.aaaacn.net/phpinfo.php,正常运行,如图2 3. Check virtualhost conf: /usr/local/nginx/conf/vhost/www.aaaacn.net.conf 4. Check rewrite rule: /usr/local/nginx/conf/rewrite/wordpress.conf 5. Check the directory permissions, and find that the files in the WordPress directory, permission users and user groups are no longer WWW, but root, it should be because the files in the…
-
Post Views: 15 1. http request, get the tenant list 2. Get the tenant list (two-dimensional array), and convert the multi-dimensional array of a tree structure into a two-dimensional array