PHPforWindows: PHP (foreign name: PHP: Hypertext Preprocessor, Chinese name: "Hypertext Preprocessor") is a common open source scripting language. The syntax absorbs the features of C, Java, and Perl, which is easy to learn and widely used and mainly applies to the Web development field. PHP's unique syntax is a mix of C, Java, Perl, and PHP's own syntax. It can execute dynamic web pages more quickly than CGI or Perl. Compared with other programming languages, PHP embeds programs into HTML (an application under the standard general Markup Language) documents for execution, the execution efficiency is much higher than the CGI that completely generates the HTML tag. PHP can also execute the compiled code to encrypt and optimize code execution, so that the code runs faster.
1. Download
: Http://windows.php.net/downloads/releases/php-5.5.24-Win32-VC11-x64.zip
II. Installation
First, decompress the downloaded zip package and place it on disk D. name it php, for example, D: \ php \, this directory should contain directories such as dev, ext, and lib and a large number of files;
III. configuration
Go to the D: \ php \ directory, find the php. ini-development File, copy it, rename it as php. ini, open the file, and modify some options:
Error_reporting = E_ALL
Display_errors = On
Extension_dir = "D: \ php \ ext"
; Dynamic expansion. you can remove the comments before extension as needed;
Such as loading PDO and MySQL
Extension = php_pdo.dll
Extension = php_pdo_mysql.dll
; CGI settings
Cgi. fix_pathinfo = 1
Note: make adjustments based on your actual needs and situations;
If the WEB Server program uses nginx (Nginx must work with FastCGI Server to process requests), run the PHP FastCGI Server manager as follows:
D:/php/php-cgi.exe-B 127.0.0.1: 9000-c D:/php. ini