Category: PHP
-
Post Views: 16 1. In the past few days, an interview question during the computer test, design a high-precision addition function, which supports the addition of long numbers without losing the accuracy, and ignores negative numbers (please do not use BCADD and other built-in functions). 2. Check php official website, bcadd – the addition calculation of two arbitrary precision numbers.…
-
Post Views: 15 1. After the basic image of the container is replaced, when the RANCHER environment variable, CHANNEL_PUB_API_CFG_MIGrate=true, the container starts failure. Error: php core warningYii\Base\ErrorExceptionwith messagemoduleGDalready loaded. as shown in Figure 1 2. When the RANCHER environment variable, channel_pub_api_cfg_migrate=false, the container starts successfully. as shown in Figure 2 3. When the RANCHER environment variable, channel_pub_api_cfg_migrate=true, is essentially executing…
-
Post Views: 16 1. At this stage, there are two environments in the public cloud. They are COM environments and CSP environments, respectively. COM environment container, as shown in Figure 1 2. Containers in the CSP environment. In the CSP environment, the 2 containers of the COM environment have been merged into one container. And a new container has been…
-
Post Views: 19 1. The HTTP request failed, and an error is reported: CURL Error: #55 – TCP Connection Reset by Peer. When requesting the Penguin video file sharding upload interface. as shown in Figure 1 2. View the size of the video file: 1554129526 / 1024 / 1024 = 1482.13 MB. as shown in Figure 2 3. View the…
-
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: 18 1. At this stage, there is a requirement, and it is necessary to send the corresponding operation logs generated to the log system of the middle platform in an interface call. The log system interface of Zhongtai supports multiple log records at the same time. Therefore, it is decided to plan to first save the generated N…
-
Post Views: 15 1. Error report in PHP environment: Notice: unknown: file created in the systems Temporary directory in unknown on line 0. as shown in Figure 1 2. Check the php.ini file, because the temporary directory used to store the file when the file is uploaded does not exist. After creating the corresponding directory, no more errors will be…
-
Post Views: 15 1. Report an error in Windows 10, Nginx 1.10, and PHP 7.4: 413 Request Entity Too Large. The size of the uploaded file: 286MB. as shown in Figure 1 2. Check phpinfo, the size of the uploaded file is limited to 1024M. as shown in Figure 2 3. Add to nginx’s server: client_max_body_size 1024M; 4. Restart nginx…
-
Post Views: 12 1. Report an error in Laravel 5.4: call to undefined function app\\app\\services\\exif_read_data(). as shown in Figure 1 2. EXIF_READ_DATA — Read the EXIF header information from an image file. is an EXIF function that depends on the extension: EXIF. Check out phpinfo . Extension not installed: EXIF. as shown in Figure 2 3. The local environment is…
-
Post Views: 16 1. URL:https://www.php.net/manual/zh/features.commandline.introduction.php. The file name of the CGI version is php-cli.exe. It should be modified to: the file name of the CGI version is php-cgi.exe. as shown in Figure 1 2. Switch to the English page, the CGI version is Distributed as php-cgi.exe. Therefore, you can determine the Chinese page error. as shown in Figure 2 3.…