Quick upgrade of ZABBIX version 5.0

Zabbix 5.0 has added many new functions, such as vertical menu, hidden menu, test items in user interface, limit agent check, find and replace preprocessing step ES7 support, etc.. Let's deploy and experience Zabbix 5.0     Upgrade Notice     Upgrade requirements PHP version PHP version has been upgraded from minimum 5.4.0 to 7.2.0 Database ver ...

Posted by dmcentire on Thu, 07 May 2020 23:02:03 -0700

YII2.0 access to Alibaba cloud OSS object storage

After searching for half a day's data, we finally managed to connect YII2.0 to OSS object storage. It is assumed that you have installed YII2.0, and you have installed compose. Step 1: install the OSS object component (i.e. the PHP API of OSS) console, enter the root directory of YII2.0, input: composer require aliyunc ...

Posted by webosb on Thu, 07 May 2020 08:59:56 -0700

Recovery linux savings: architecture building lnmp (configuration)

nginx virtual host vim /usr/local/nginx/conf/nginx.conf Add include vhost/*.conf; mkdir /usr/local/nginx/conf/vhost vim /usr/local/nginx/conf/vhost/aaa.com.conf - virtual host configuration file server { listen 80 default_server; (Yes default_serve Is the default virtual host) server_name aaa.com; (Define site name) index ...

Posted by jonahpup on Tue, 05 May 2020 14:19:09 -0700

Implementation of PHP+MySQL paging principle

Function introduction: including previous page, next page, first page, last page, jump page and other functions. Code message: turn complexity into simplicity, and you will be enlightened. Running screenshot:    Key steps: After the database is created, dozens of data are inserted to facilitate testing. CREATE TABLE `page` ( `ID` int(10) ...

Posted by the_damo2004 on Tue, 05 May 2020 09:30:37 -0700

Easysoole uses configuration files in *. ini format

brief introduction This article takes you through how to use ini configuration files in easysoole. Advantages and disadvantages of ini Advantages: linear, simple, concise and convenient Disadvantages: weak data configuration of complex types directory structure . ├── App │ ├── HttpController │ │ └── Productor.php │ ├── Process │ ...

Posted by Syrehn on Tue, 05 May 2020 08:35:30 -0700

Upload files through fromdata

In fact, there are many plug-ins for file upload, but what we do now requires to use as few plug-ins as possible, so I wrote it myself. I've also written about file processing with node before. This time, I'll try it in php. a.html file <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/html"> <head> <meta http- ...

Posted by asd on Tue, 05 May 2020 06:05:32 -0700

Java ip address query, according to the ip interface to obtain the province, city, zip code, operator, etc

In the morning, the project manager said that it is necessary to add a user ip home location query function, and then search the Internet for half a day, and work out a relatively simple method to return address json data through the interface Baidu interface, Sina interface, Taobao ip interface is used here Get IP location through Taobao IP ad ...

Posted by aaadispatch on Tue, 05 May 2020 04:19:22 -0700

Exporting excel table with php header function

In addition to exporting tables with PHPExcel, another simple table import method that does not need to import class files is recommended: header() exports excel tables. The steps of exporting the table are encapsulated into a method for reuse. The code is as follows: 1 /** 2 * Export data to excel 3 *@param $data A two-dimensional arr ...

Posted by Valera on Mon, 04 May 2020 23:51:50 -0700

Binary search method of java learning notes

java binary search method I saw a binary search method of php when I was browsing the code cloud tonight. I was familiar with the word. (I learned it when I was learning php, but I didn't use it in my work, and I was confused when I was in school, and I forgot it slowly). I clicked in, wrote it in java, and used recursion. Personal understandin ...

Posted by ognotongo on Mon, 04 May 2020 22:05:08 -0700

php wechat app payment

Scenario introduction It is applicable for merchants to integrate wechat payment function in mobile APP. When the merchant APP calls the SDK provided by wechat to call the wechat payment module, the merchant APP will jump to wechat to complete the payment, then jump back to the merchant APP after the payment, and fina ...

Posted by vince251 on Mon, 04 May 2020 21:35:33 -0700