Validation -- a feature rich PHP parameter validator

Validation -- a feature rich PHP parameter validator Validation is used to check the validity of background parameters. Easy to use and intuitive. https://github.com/gitHusband/Validation If you have any opinions or ideas, we can communicate and discuss together! As for why I wrote this tool: For background parameters, in theory, t ...

Posted by pstevereynolds on Fri, 19 Nov 2021 19:19:15 -0800

File contains vulnerability

I think the File Inclusion Vulnerability is a bit like the ssrf vulnerability. The ssrf vulnerability obtains information through the curl() function but does not filter it, so as to access the intranet and cause harm. The File Inclusion Vulnerability obtains files through the include() function. The attacker inputs sensitive files and causes s ...

Posted by gevensen on Fri, 19 Nov 2021 00:46:33 -0800

Explore Kafka from the perspective of PHP - realize simple producer function

Explore Kafka from the perspective of PHP - realize simple producer function code first public function actionProducer() { $conf = new \RdKafka\Conf(); $conf->set('metadata.broker.list', 'broker address'); /** * kafka Delivery callback * RdKafka\Message Object * ( * [err] => 0 // If it is equal to 0, the delivery is ...

Posted by rweston002 on Thu, 18 Nov 2021 03:57:28 -0800

PHP function parameter description

This article is an original article of Joshua 317. Please note: reprinted from Joshua 317 blog PHP function parameter description - blog of Joshua 317 Through the parameter list, you can pass information to the function, that is, a list of expressions separated by commas. Parameters are evaluated from left to right. PHP supports passing param ...

Posted by blackhawk08 on Wed, 10 Nov 2021 15:46:28 -0800

How to deploy your own project using docker

How to deploy your own project using docker? A while ago, the company had a need to deploy the project to the local privatization. I didn't study the server and it was very laborious to build it, so I used docker to make a series of images of project privatization deployment. Now I write a blog to record the process of learning and building ...

Posted by kye on Wed, 10 Nov 2021 11:56:29 -0800

Docker php installation extension steps

Demonstrate what the four commands docker PHP source, docker PHP ext install, docker PHP enable docker configure are used for and what they do in the PHP container? The PHP container in Docker installs extensions in the following ways: Installation by peclIt is installed through several special commands in the php container, which can be used ...

Posted by ChrisA on Mon, 08 Nov 2021 04:34:42 -0800

PHP container and the idea of dependency injection

Dependency injection When class a needs to rely on class B, that is, it needs to instantiate class B objects in class A for use, if the functions in class B change, the places where class B is used in class a will also be modified, resulting in high coupling between Class A and class B. The solution at this time is that class A should rely o ...

Posted by le007 on Thu, 04 Nov 2021 17:24:58 -0700

User registration scenario - SMS verification solution

The mobile phone number verification function is basically used in the new user registration link of the website or APP. Whether the function is safe and stable will directly affect the conversion rate of new registered users. When enterprises use the new user registration function, they usually encounter the following two problems: 1, SMS in ...

Posted by broann on Tue, 02 Nov 2021 03:59:57 -0700

Laravel 5.8 bottom learning note 01 - control inversion and dependency injection

home pagespecial columnPHP GardenArticle details0Laravel 5.8 bottom learning note 01 - control inversion and dependency injectionIT pony Published 10 minutes agoreference material:Explanation of core concepts of laravel underlying core code analysisPHP inversion of control (IOC) and dependency injection (DI)1 - Laravel framework coreadvantageIn ...

Posted by Leviathan on Sat, 30 Oct 2021 00:58:45 -0700

laravel's mysql split table and split table associated query solution

0X00 problem appears How does laravel of php implement horizontal sub table? Recently, there was a project in hand. The framework used the laravel7 framework of php. Due to the surge in the amount of data, 300000 rows of data were produced in one night for the details of rapid iterative development, and the main table had 12 million data. Beca ...

Posted by -entropyman on Wed, 27 Oct 2021 09:20:17 -0700