PHP file contains
File contains
Thinking: the function of PHP requires that the function must be called in memory, but the function is written in the corresponding PHP file one by one. Must the code in other files be copied to access it?
Introduction: if the corresponding function in a file has been written, if you want to use it in other PHP files, yo ...
Posted by juuuugroid on Wed, 23 Feb 2022 02:21:14 +0100
[Introduction to php basics] Detail php variables and constant points of knowledge
Foreword: mix one day and work hard one day, one day does not see any difference, three days do not see any change, seven days do not see any distance... But after one month you will see different topics, after three months you will see different atmosphere, after six months you will see different distances, after one year you will see ...
Posted by aspbyte on Fri, 18 Feb 2022 22:49:57 +0100
Interview shock: talk about thread life cycle and transformation process?
The life cycle of a thread refers to the whole process from creation to destruction. Generally, there are five kinds of thread life cycles:Initial stateOperational statusrunning state Dormant stateTermination statusTheir state transitions are shown in the following figure:Java thread lifecycleThe life cycle of Java thread is different from that ...
Posted by hongco on Fri, 18 Feb 2022 15:29:27 +0100
php data types, array sorting, circular statements, mixing, local file operation process, common API s, functions, magic constants
Data type in php:
There are seven data types in php:
//1.String string, a character wrapped in quotation marks, such as:
$str = 'hello word';
//2.Integer integer, which can be positive or negative, has decimal, hexadecimal and octal, and cannot have decimal point, space, comma and other symbols, such as:
$num = 123;
...
Posted by magic2goodil on Fri, 18 Feb 2022 09:49:52 +0100
ekucms2.5 local file contains vulnerability - code audit
ekucms2.5 local file contains vulnerability - code audit
1, Foreword
In order to learn the operation principle of Thinkphp framework and strengthen its own code audit ability, we specially looked for a CMS vulnerability article written by php on the Internet for reproduction and reverse code audit. Vulnerability reference articles are as foll ...
Posted by backie on Wed, 16 Feb 2022 17:44:52 +0100
linux php process advanced signal
signal
Introduction to signal and interrupt flow
Signal refers to software interrupt signal, referred to as soft interrupt for short
Interrupt source (interrupt signal generation position):
Terminal device driver
The interrupt signals ctrl+c, ctrl+z, ctrl generated by pressing the key on the terminal equipment+\Hardware excepti ...
Posted by lucilue2003 on Sun, 13 Feb 2022 10:26:57 +0100
PHP session file inclusion and deserialization (utilization of session.upload_progress)
preface
This article uses PHP_SESSION_UPLOAD_PROGRESS summarizes file inclusion and deserialization.
That is, the file inclusion and deserialization of PHP session
Introduction to session
Session is called "session control". The session object stores the attributes and configuration information required for a specific user ...
Posted by CiPH on Fri, 11 Feb 2022 18:37:03 +0100
php magic method
encapsulation
Use modifiers to modify member properties and member methods, hide the internal details of the object to the greatest extent, and ensure the integrity and security of the object
Object encloses variables and functions in curly braces
That is, object = {member attribute + member method} = {variable + function}
The emphasis is o ...
Posted by vaavi8r on Fri, 11 Feb 2022 03:37:20 +0100
Binary search (solve your problem of judging from scratch for loop with the least steps)
WHAT?
Suppose you want to find a person whose name starts with K in the phone book, (who still uses the phone book now!) You can turn the page from the beginning until you enter the part starting with K. But you probably don't do that, but start in the middle, because you know the name starting with K is in the middle of the phone book.
Suppo ...
Posted by foreverhex on Thu, 10 Feb 2022 06:34:17 +0100
php observer mode is also very useful. Do you often use it?
Design pattern is the knowledge that every programmer must know and learn. Although it is not the foundation, you must understand it.
introduce
You may encounter it in programming. Sometimes the state change of an object will affect many kinds of behavior. Typically, in the purchase process, after successful purchase, it will affect invent ...
Posted by phpwiz on Wed, 09 Feb 2022 19:02:04 +0100