Compiling PHP with crypt ()
Author
Daniel Beulshausen
Updated
14.10.2000
This "Quick tutorial shall help" compile PHP with support for the Crypt () function, because it's not correct if You use the Windows can ' t use Crypt ().
It is however correct this libcrypt isn ' t available by default on Windows, but can use the libary from our download SE Ction.
Extract the zip and move crypt.h to your include folder, and the needed libary (release or Debug) to your Libary folder (t Ools, options, folders).
Load the PHP workspace, and add crypt.c (can be found in ext/standard/) to the Php4dllts group (you can put crypt.c to fun Ction Modules, Source Files).
Now edit the link options of the Php4dllts project, and add Libcrypt to the link libaries, note that we compiled a release And a debug libary, please use only release for the release builds, and the debug libary for debug builds!
Now edit config.w32.h (located in main/), edit it and change the needed defines:
#define HAVE_CRYPT 1
#define HAVE_CRYPT_H 1
This should does the trick, and it ' ll build you PHP with the crypt () function.
http://www.bkjia.com/PHPjc/445242.html www.bkjia.com true http://www.bkjia.com/PHPjc/445242.html techarticle Compiling PHP with crypt () Author:daniel Beulshausen updated:14.10.2000 This quick tutorial shall help you to Compil e PHP with support for the Crypt () function, because it's not C ...