Start with the life cycle of PHP, understand how a PHP program starts running to the end of the process, it is important to learn PHP and PHP development in peacetime.
start and close phases:
For PHP, the start and close stages can be divided
It's been a very, very dry year, all right, everybody, look at this thing.
Basically CGI scanner (this includes most SQL injection detection tools, background/upload/database scanner)are judged by the HTTP response message code, which is 200, 404, 4
If statement, switch statement, while loop, Do...while Loop, for Loop, Foreach Loop, break interrupt loop, continue instruction. This is demonstrated by the week function below.
Three kinds of Process control structure of program
1. Sequential
Reads the Excel file data and returns the wrong information
Copy CodeThe code is as follows:
/**
* Import Commodity basic information
*/
Public Function Importproductbasicinfo ($data) {
Include_once ' phpexcel.php ';
Include_once '
In PHP, the array can hold the value can be any PHP type, if the given value does not specify the key name, then the current largest integer index value, and the new key name is the value plus one, this is the PHP array
There are three types of
We PHP programmers may have to use the Eval () function This function to do some operations, many hackers use this function can make a fuss, he can directly accept the user submitted to the data and execute Oh, this sentence will not scare you oh,
PHP uses eval (gzinflate (str_rot13 (' Base64_decode (' BASE64 encrypted content '))) to decrypt the core code
The following non-extensible PHP Tutorial Encryption Method:
There's an online one, and it's good. Trojan anti-killing is OK, to protect
This article introduces the general about how to do some common security configuration in php.ini, the students need to refer to.
(1) Open PHP Safe mode
PHP's security model is a very important embedded security mechanism, can control some functions
This article to introduce Phpstorm xdebug installation configuration instructions, this is not the first time I configured Phpstorm, the following experience to share to you.
With Xdebug is not the first time, but with Phpstorm Xdebug is the first
The author summarizes some problems in the CC script attack and some solutions to anti-CC script attacks, a friend of the need to refer to.
1, log into the VPS Control Panel, ready to restart the VPS at any time.2, close Web server first, the high
From my understanding of Echo (), print (), print_r () This function is echo can input string variable constants, print and Echo, but Print_r can print the array and the first two is not possible, let me explain in detail their usage and differences
Four MySQL paging stored procedure examples This article collects four MySQL paging stored procedure instance code, has the efficient paging stored procedure as well as the entry-level and the common stored procedure pagination code, if you are
Regular expressions for IP addresses two examples of IP regular expressions are provided below, examples of IP addresses are verified, and legitimate IP addresses are printed.
Regular expressions for IP addressesHere are two examples of IP regular
In PHP, HTML is converted into text to provide the function strip_tags, but sometimes this function is not enough, the following summarizes some user-defined functions, you can refer to.
The most common use of PHP functions Strip_tags
I'm going to use the Curl function to collect data when I find that the call to undefined function Curl_init error, later learned from the official website because curl default is not PHP open function, we need to manually open Oh, Let me show you
/* Purpose: Read the file under a directory */
The directory to read
$folder = "H:/temp";
Open Directory
$FP =opendir ($folder);
Read Catalogue
while (false!= $file =readdir ($fp))
{
List all files and remove '. ' and ' ... '
if ($file! = '. ' &&
PHP fatal Error:class ziparchive not found error prompt when using the Ziparchive class, let's describe the workaround in Linux and Windows.
This error indicates that the program did not succeed when calling the ' Ziparchive ' class because it did
Short URLs now used more than a lot of jump site will be generated, such as the original micro-blog has this function, I would like to recommend a PHP URL to shorten the code
Each URL is replaced by 6 characters, and (32^6) can have a maximum of 1,07
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service