Typical security risks and handling of 11 php programming types. PHP itself has some problems with the old version, such as some serious bugs before php4.3.10 and php5.0.3, so we recommend that you use the new version. In addition, the popular
One, CGI mode installation security
Second, the Apache module to install security
When PHP is installed as an Apache module, it inherits the privileges of the Apache user (usually "nobody"). This has some impact on security and authentication. For
ThinkPHP framework bootstrap analysis. This type of file is in: ThinkPHPLibraryThinkThink. class. the php class can be said to be the core class Library of the ThinkPHP framework. it is responsible for loading many configurations and registering the
Demo Code
Operation effect (Figure 1)
Operation effect (Figure 2)
Main Package function
Multi_process ();According to the parameters, create the number of pointers to the child process.Bright spot Function 1: The
"One, server-side Configuration"Security, PHP code writing is on the one hand, PHP configuration is very critical.We PHP hand-installed, PHP default configuration file in/usr/local/apache2/conf/php.ini, we mostly want to configure the content in PHP.
The document did last year, supposedly should be updated, not well written, some did not write the whole, referring to a lot of documents.
Say Owasp Codereview, also should out 2.0.
The cows were passing by, giving some advice.
Directory
1.
PHP prevents SQL injection methods, Phpsql injection
"One, server-side Configuration"
Security, PHP code writing is on the one hand, PHP configuration is very critical.We PHP hand-installed, PHP default configuration file
Original article: www. imooc. comlearn26 determines whether a function exists. When we create a UDF and understand the usage of a variable function, to ensure that the function called by the program exists, function_exists is often used to determine
The following is a personal summary of the PHP file manipulation function. Of course, that's just part of it, and there's a lot that I haven't listed.
first, parse the path:
1 Get FileName:
BaseName ();
Gives a string containing a full path to a
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.