API is a good choice when using cross platform applications. In addition to the website, your product may also have Android and iOS applications. In this case, the API is just as good because you can write different front ends without changing any back-end code. When using the API, just click GET, POST or other types of requests with some param ...
Posted by beachcomber on Sat, 09 May 2020 01:20:36 -0700
Design a person class with the following conditions:
1) Define the protected attribute: name (name), age (age), sex (gender)
2) Define static attribute: num (used to calculate the number of instantiated persons)
3) Define a constructor that outputs "I am a person" when an object is created and adds 1 to num;
4) Define a dest ...
Posted by moise on Fri, 08 May 2020 10:33:34 -0700
Detailed explanation of Ansible Roles and practical cases
Add user account
1. Login account used by operation and maintenance personnel;
2. All businesses are placed in the "home directory of yun users" under / app / to avoid misplacement of business data;
3. This user is also used by ansible, because alm ...
Posted by chard on Fri, 08 May 2020 06:53:59 -0700
1. Events are similar to middleware, but events are more accurately positioned and more detailed business scenarios;
2. Event definable: event class, event listening class and event subscription class;
3. We first create a test event class: TestEvent.php, and manually create a test class;
public function __construct()
//Register l ...
Posted by why2k on Fri, 08 May 2020 03:58:55 -0700
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
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
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
nginx virtual host
Add include vhost/*.conf;
vim /usr/local/nginx/conf/vhost/aaa.com.conf - virtual host configuration file
listen 80 default_server; (Yes default_serve Is the default virtual host)
server_name aaa.com; (Define site name)
Posted by jonahpup on Tue, 05 May 2020 14:19:09 -0700
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.
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
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
│ ├── HttpController
│ │ └── Productor.php
│ ├── Process
Posted by Syrehn on Tue, 05 May 2020 08:35:30 -0700