Build your own PHP on windows Platform (only applicable to php5.2 ). Steps for building www.php.net
1. install vs2008
2. install windows sdk 6.1
3. download the php 5.2 source code and obtain the Releases from it (do not unzip it first)
4, download bindlib_w32.zip, http://www.php.net/extra/bindlib_w32.zip
5, download win32build.zip, http://www.php.net/extra/win32build.zip
6, download libxml2, iconv, zlib and other library http://www.zlatkovic.com/pub/libxml/
7. create C: \ php5.2-mybuild (you can also change it to the directory you want, such as C: \ test ). Create C: \ php5.2-mybuild \ win32build, C: \ php5.2-mybuild \ bindlib_w32, C: \ php5.2-mybuild \ php-src.
8. decompress win32build.zip to C: \ php5.2-mybuild \ win32build. After decompression, C: \ php5.2-mybuild \ win32build should contain sub-directories such as bin, include, and lib.
9. decompress bindlib_w32.zip to C: \ php5.2-mybuild \ bindlib_w32.
Compile bindlib_w32 and put the generated resolv. lib in C: \ php5.2-mybuild \ win32build \ lib to overwrite the original one.
10. decompress the php 5.2 source code to C: \ php5.2-mybuild \ php-src.
11. open the windows sdk 6.1 shell and enter the following command:
Setenv/x86/xp/release
12,
Cd C: \ php5.2-mybuild \ php-src
13,
Buildconf
14. View compilation options
Cscript/nologo configure. js -- help
15. enter the build command as needed:
Cscript/nologo configure. js -- enable-object-out-dir = "C: \ php5.2-mybuild" -- with-php-build = "C: \ php5.2-mybuild \ win32build "-- disable-all -- enable-cli
16,
Nmake
17. after making, you can see that the Release_TS folder is added under the C: \ php5.2-mybuild directory, which is used to store the files after build, you can modify -- enable-object-out-dir to configure the output directory you specified.
Fuse 1, install vs2008 2, install windows sdk 6.1 3, Download php 5.2 source code, you can get Releases (do not unzip first) 4, download bindlib_w32.zip, http://www.php.net...