PHP of data structure and algorithm using adjacency table and adjacency matrix to realize depth first traversal (DFS) of graph

1, Basic ideas 1) Access the specified starting vertex v; 2) From the adjacency point of v which is not visited, the graph is traversed in depth first, until the vertices which have path communication with v are visited; 3) If there are still vertices in the graph that have not been visited at this time, the depth first tra ...

Posted by novice@work on Thu, 21 May 2020 08:07:31 -0700

Detailed explanation of zombie process and orphan process in PHP

Zombie process When the child process finishes running, the parent process continues to run, but the parent process does not recycle the child process, freeing the resources occupied by the child process, then the child process becomes a zombie process. In Unix process management, if the new child process is finished, the parent process will re ...

Posted by move3rd on Thu, 21 May 2020 00:31:00 -0700

JS performs Base64 encoding, MD5 encryption and URL encoding to realize the signature verification of express bird API interface

Some netizens left a message saying that they wanted to call the express bird API interface to realize Express query, but they didn't understand the back-end development, JAVA, PHP, C and python. They asked me if I could realize express interface query, and I said what would you do, he said, I only know a little bit about JS. I replied that it ...

Posted by ATLien on Wed, 20 May 2020 08:15:41 -0700

PHP encryption extension library openssl

PHP encryption extension library Mcrypt extension library Summary: php upgrade from 7.0 to 7.1 discards an extension, that is, the mcrypt extension. Although the extension can be used normally on the installation, a warning will be given to tell us that the mcrypt related methods have been discarded and have been removed by 7.2. Therefore, it i ...

Posted by sloshire1 on Mon, 18 May 2020 08:15:14 -0700

Log mysql operations

Now I want to compare the differences before and after php web page execution, but I still can't find better software Add, delete, and change the kind that is recorded. Then MySQL 5 is discovered by browsing the official documentation.1 has one Common Query Log .So try: #cd /Applications/XAMPP/xamppfiles/bin cd /Appl ...

Posted by Goofan on Fri, 15 May 2020 09:17:40 -0700

Empire cms loads more implementations (both parent and child columns can be implemented)

1, <div class="pagelist"> <span id="loadmore" class="btn" style="display: block;">Load more</span> </div> Find the button to load more and set the id (preferably id, which is easier to traverse). 2, <ul id="showajaxnews" style="opacity: 1; top: 0px;"> [!--empirenews.listtemp--]<!--list.var ...

Posted by php_man555 on Thu, 14 May 2020 07:33:19 -0700

laravel5 route changed to rule matching

laravel has many projects in use, but routing configuration is an indispensable work. In many cases, routing configuration not only increases the repetitive work, but also increases the code overhead. When the project reaches a certain level, the number of routing configurations will be amazing. In many cases, we have to think that although th ...

Posted by ben2468 on Mon, 11 May 2020 00:57:47 -0700

Use hasMany of Laravel Eloquent to develop infinite classification

In the online shopping mall, we can often see multi-level classification, sub classification and even unlimited classification. This article will show you how to implement it gracefully through Laravel Eloquent.   We will create a micro project to show the classification of children's shops, with 5 levels in total, as follows: Database migrati ...

Posted by nitram on Mon, 11 May 2020 00:03:54 -0700

PHP implementation of file compression and decompression

In php, sometimes we need to use the compressed file operation, which can save disk space; and the compressed file is smaller, convenient for network transmission, and efficient. Let's learn about the compression and decompression related operations of php There is a ziprarchive class in PHP, which is specially used for compression and decompr ...

Posted by doremi on Sat, 09 May 2020 01:58:02 -0700

Using Laravel to integrate JWT certification to develop RestfulApi

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