php interview topics --- 11 development environment and configuration test sites

php interview topics --- 11 development environment and configuration test sites

A summary

Sentence summary:

Php and understand the operating principle of common configuration items

 

1, version control software?

Centralized: CVS and SVN
Distributed: Git

 

 

2. Please briefly describe the difference between CGI, FastCGI and PHP-FPM is?

CGI: agreement between HTTP Server and a separate process, the standard HTTP Request Header set of environment variables to the process, the body of HTTP Request is set to the process's standard input, output and process that includes HTTP Response Header and body
FastCGI: FASTCGI is HTTP protocol and similar concepts. Nothing more than the same time defines how pass multiple HTTP connections on the same TCP connection inside. This fact leads to a question, there is a large file transfer HTTP connection refused to give up FASTCGI connection, other HTTP connection in the same connection in the FASTCGI silly. So Lighttpd? Introduces X-SENDFILE.
PHP-FPM: php-fpm is the equivalent of Apache + mod_php. Nothing more than php-fpm comes FASTCGI Server, and Apache is the HTTP Server.

 

3, PHP common configuration item?

upload_max_filesize: maximum file upload size
Maximum number of files to upload: max_file_uploads
post_max_size: The maximum size of the data submitted post
date.timezone: Set the time zone

register_globals: register globals
allow_url_fopen: Allow Remote File Open
allow_url_include: allows remote file containing the
Set Time Zone: date.timezone
display_errors: error debugging
error_reporting: error level is set
safe_mode: whether to open the safe mode
upload_max_filesize: The maximum upload file size
max_file_uploads: upload maximum number of files
post_max_size: the maximum size of the data submitted post

 

 

 

Second, content in summary

 

 

 

 

Reproduced in: https: //www.cnblogs.com/Renyi-Fan/p/11061863.html

Guess you like

Origin blog.csdn.net/weixin_33842328/article/details/93571707