Compilingphpwithcrypt () _php Tutorial

Source: Internet
Author: User
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.