Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

IBM developerWorks:
Building PHP on Windows
Jul 03, 2007 @ 14:21:00

From the IBM developerWorks phpblog today, there's a new tutorial on getting PHP to compile/build on a Windows machine from the source - PHP 6 (and PHP 5).

These instructions are intended to cover everything that you need to do to be able to build PHP on a Windows XP system. They may work on other Windows systems, I haven't checked. No prior knowledge is assumed, except how to perform basic operations using the windows command line (eg mkdir, copy) and how to use an editor (eg edit) and no software (other than Windows) is assumed to be installed.

The instructions have been tested with PHP6 and PHP5, the only difference being that any references to ICU can be ignored if you are building PHP5.

The tutorial starts with the download of all needed software - Visual C++, a Windows Server 2003 SDK and the .NET framework. The rest is broken up into three steps:

  • getting PHP and the prerequisites to prepare for the build
  • customizing the build environment (combining Visual Studio and the SDK)
  • performing the actual PHP build (including steps to build resolv.lib and running the compile from the command line).

He also points to Elizabeth Smith's tutorial on compiling on Windows for more information.

tagged: compile windows visualc sdk framework dotnet compile windows visualc sdk framework dotnet

Link:


Trending Topics: