1, PHP foundation - form value transfer and file upload

Form value transfer Concept: Form value transfer means that the browser submits the user's selection or input data to the background server language through form elements. Why use forms to transfer values? The characteristic of dynamic website (Web2.0) is that the background customizes data according to the needs of users. The so-called &quo ...

Added by mlcheatham on Tue, 01 Feb 2022 19:30:32 +0200

Algorithm and data structure

Algorithm and data structure algorithm The algorithm is the core of the program. The quality of the algorithm directly determines the quality of the program Several basic algorithms Binary search Bubble sorting Insert sort Sort selection Quick sort Binary search Assuming that the data is sorted in ascending order, for the given value x, the com ...

Added by maneetpuri on Mon, 31 Jan 2022 22:39:57 +0200

PHP process and interprocess communication

environment The process in php is completed in the form of extension. Through these extensions, we can easily complete a series of actions of the process. pcntl extension: the main process extension, which completes the process creation in the waiting operation. posix extension: complete the general api of posix compatible machine, such as ob ...

Added by tomasd on Sun, 30 Jan 2022 18:11:11 +0200

PHP & understand the causes of autoload, PSR-0 and PSR-4 and analyze the differences between PS0-0 and PSR-4

1. include & require We know that if an A.php file wants to introduce the classes in the B.php file, it needs to introduce B.php through include / require. This method is not a problem for small projects, but for large projects, it usually contains many public files, such as foo / bar / dog PHP, according to the traditional way, we can imp ...

Added by jibster on Sun, 30 Jan 2022 17:55:37 +0200

Encapsulation of wechat, Baidu, byte beating and other applet public class libraries

Many small programs have been developed. Each time, we have to turn over the documents and find the previous project to copy it,It takes time and trouble. In order to facilitate the development of small programs, we simply build our own wheels,Integration of small programs (WeChat, QQ, Baidu, byte beating, Alipay) related development. !! Plea ...

Added by brettpower on Sun, 30 Jan 2022 15:48:12 +0200

The interviewer asked how to do the ten million level email publishing system? MailBee can be reached in 2 minutes

Today, when making MailBee series products, I remembered the embarrassing scene of being asked by an interviewer when I went to the interview in 2014. Generally, I recommend using self built smtp email to push small systems. There is still no problem pushing 1000 emails a day; If a small website needs more push volume, Alibaba cloud push inter ...

Added by FUNKAM35 on Sun, 30 Jan 2022 15:29:57 +0200

Will the deletion of Redis large Key really cause the main thread to block? Do experiments to prove it!

backgroundMany online topics about redis have talked about avoiding causing large keys, because deletion will block the main thread. I've seen a comment that a large key of 2G was deleted in the test, and the system was blocked for about 80 seconds.I was asked how to delete a big key during an interview.Recently reading redis5 0.8 source code. ...

Added by spelman07 on Fri, 28 Jan 2022 02:38:23 +0200

php implementation generates sitemap xml map

This article is from qaq Po Yan blog. https://qagzs.com:88/ Joan article / 43 html Before submitting sitemap to Google search engine, I found that Google used xml instead of html, so I wanted to use lazy tools to crawl the xml map that generated sitemap on the Internet Don't ask me why my blog doesn't have an xml map, because the framework fun ...

Added by Cinds on Thu, 27 Jan 2022 23:24:52 +0200

BossCMSV1.0 code audit

BossCMSV1.0 code audit preface The article originated in the prophet community BossCMSV1.0 code audit The following vulnerabilities have been submitted to CNVD and included Background arbitrary file upload Add the allowed upload type in the background security settings php Then upload the php Trojan horse file getshell through the attachm ...

Added by jesbin on Thu, 27 Jan 2022 08:02:22 +0200

Learning record of PSR-[0-4] code specification in php

Learning record of PSR-[0-4] code specification in php 1. What is PSR? PSR is a set of code writing specifications used to constrain code style. In the past, when there was no standard, everyone wrote code according to their own habits, but everyone's style was different, and your code was very uncomfortable in the eyes of others. And it will ...

Added by DrAxeman on Tue, 25 Jan 2022 23:08:53 +0200