Php security configuration records and common errors (Summary), common php errors
After the php environment is deployed, some security settings are made. In addition to being familiar with various php vulnerabilities, you can also configure php. ini
After the php environment is deployed, some security settings are made. in addition to being familiar with various php vulnerabilities, you can also configure php. ini to reinforce the runtime environment of PHP, and PHP has been officially modified
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
This article mainly introduces the PHP security Configuration records and common error carding detailed, interested in the friend's reference, I hope to be helpful to everyone.
Usually after the deployment of the PHP environment will be some
Fault detection1. Other first, top look at the CPU, RAM, swap which is more tense.By analysis, you can see a total of 602 processes, of which 601 processes hibernate. This seems to be something wrong, the kernel process is about 80, plus memcached,
Recently, comparing the features of PHP, Python, and Erlang found that PHP has many features that are not commonly used. PHPCLI can be used to implement many good applications. For example, search engine crawlers and long-running computing scripts
1. Questions
In PHP code, you need to execute a shell script to get its standard output (stdout) and error Output (stderr) separately . Using shell redirection to put the standard output and error output into a file and then read the file in PHP, it
Sometimes we install or develop Php+mysql+apache applications that require a version of the environment, and we can use the following code to query PHP, MYSQL, and Apache versions of the information to see if they meet our needs.1. Direct access to
PHP has a set of process control functions (enable-pcntl and posix extensions are required during compilation ), this allows php to create sub-processes, execute programs using exec functions, and process signals in * nix systems like c. PCNTL uses
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.