PHP implementation of data structure and algorithm queue and stack

1, Queues 1) Queue is a first in first out (FIFO) linear table. It only allows deletion at the front end of the table and insertion at the back end of the table. The end of the insertion is called the end of the queue, and the end of the deletion is called the head of the queue. That is to say, the team can only enter from the end of the team, ...

Posted on Tue, 19 May 2020 04:14:52 -0400 by mgmoses

Linux install and enable PHP-FPM

First, take the -- enable FPM parameter with you at compile time: [root@localhost local]# yum -y install libxml2 libxml2-devel gd gd-devel [root@localhost local]# wget http://cn2.php.net/distributions/php-7.2.0.tar.gz [root@localhost local]# tar -zxvf php-7.2.0.tar.gz [root@localhost local]# cd php-7.2.0 [root@localhost php-7.2.0]# ./configu ...

Posted on Mon, 18 May 2020 10:06:10 -0400 by zako234

12:pnp4nagios Custom Template Drawing for Nagios Monitoring

The article is summarized from the instructions on the official website: http://docs.pnp4nagios.org/pnp-0.6/tpl In daily use, it is unavoidable to find that the default drawing does not meet our needs, so you can customize the template to achieve the desired drawing effect according to your needs. 1. Official description of custom templates 1. ...

Posted on Sun, 17 May 2020 13:39:02 -0400 by mysql_query

Search interface optimization scheme -- basic use of elastic search distributed search engine

preface: In general, there is a search function in development projects. If it is a search function for the C end, it often tests the performance. For example, the commodity search in the general mall system or the website search of some resources. Perhaps the previous approach is to do a fuzzy query by name or product description on the prod ...

Posted on Sun, 17 May 2020 02:26:17 -0400 by Dasndan

Implementation of lamp architecture and unified log management

1. Deploy the separated LAMP to two servers, and php loads the xcache module 1) Install httpd, PHP, PHP MySQL on c2 server [root@c2 ~]# yum install httpd php php-mysql -y 2) Installing the database mariadb server on the mariadb server [root@mariadb ~]# yum install mariadb-server -y 3) Start service [root@c2 ~]# systemctl start httpd [root@mari ...

Posted on Sat, 16 May 2020 03:29:12 -0400 by BuzzStPoint

XSS Challenge Tour (by reading the code)

XSS Challenge Tour level 1 There is no filtering payload: <script>alert(1)</script> level 2 php key code: echo "<h2 align=center>And not found".htmlspecialchars($str)."Relevant results.</h2>".'<center> <input name=keyword value="'.$str.'"> Analysis: str is a controllable variable, the ...

Posted on Fri, 15 May 2020 21:04:31 -0400 by alexislalas

php object oriented method

php object oriented static method usage What is a static method? Not all variables and methods are called by creating objects. It can be called directly by adding static keywords to variables and methods. The syntax format for calling a static member is: Key:: static member The keywords can be: (1) self, used when static members are called insi ...

Posted on Fri, 15 May 2020 05:16:11 -0400 by idontkno

View linux Log in web interface

rsyslog+mariadb+loganalyzer An architecture that can use web pages to view logs Environment preparation: just like the centralized log server architecture mentioned in the previous course, this architecture is built on the server, that is, the host with IP address of 192.168.1.55 Environment preparation and setting of server side Packages requ ...

Posted on Thu, 14 May 2020 10:39:32 -0400 by lunny

Does an open source blog theme hide private goods?

First of all, this article is just my guess. If there is something wrong, please correct it in time background A few days ago, a friend introduced that he saw a blog Park theme. The theme had a great idea. It was not so good, but later he looked at the source code and found some secret things. Source Address https://github.com/cjunn/cnblog_ ...

Posted on Tue, 12 May 2020 20:03:25 -0400 by skyace888

Docker quickly set up master-slave + sentry monitoring

Install Redis Execute command My official group Click here . docker pull redis Deployment plan Start three machines, 6379 container as master node, the rest as slave node Start preparations   directory structure ├── conf │ ├── redis_6379.conf │ ├── redis_6380.conf │ ├── redis_6381.conf │ ├── sentinel_26379.conf │ ├── sentinel_26 ...

Posted on Mon, 11 May 2020 10:06:36 -0400 by Angry Coder