Compilingphpwithcrypt()_PHP教程
程序员文章站
2022-05-21 12:54:24
...
Compiling php with crypt()
author:
Daniel Beulshausen
updated:
14.10.2000
This quick tutorial shall help you to compile php with support for the crypt() function, because it's not correct that if you use windows you can't use crypt().
It is however correct that libcrypt isn't available by default on windows, but you can use the libary from our download section.
Extract the zip and move crypt.h to your include folder, and the needed libary (release or debug) to your libary folder (tools -> 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 Function 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 do the trick, and it'll build you php with the crypt() function.
author:
Daniel Beulshausen
updated:
14.10.2000
This quick tutorial shall help you to compile php with support for the crypt() function, because it's not correct that if you use windows you can't use crypt().
It is however correct that libcrypt isn't available by default on windows, but you can use the libary from our download section.
Extract the zip and move crypt.h to your include folder, and the needed libary (release or debug) to your libary folder (tools -> 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 Function 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 do the trick, and it'll build you php with the crypt() function.
上一篇: PHP---认识语法笔记
下一篇: hessian 在PHP中的使用介绍
推荐阅读
-
在MySQL中创建实现自增的序列(Sequence)的方法教程
-
django(1045,"Accessdeniedforuser'wccLab'@'localhost'(usingpassword:no)BUG问题的解决教程
-
基于mycat配置MySQL读写分离的详细教程
-
简单的Python的curses库使用教程
-
用Python实现协同过滤的教程
-
idea创建springMVC框架和配置小文件的教程图解
-
非主流ps教程实用的几种技巧汇总
-
PHP ignore_user_abort函数详细介绍和使用实例
-
flash基础教程:帧、关键帧、空白帧概念及区别介绍
-
Linux下手动编译安装PHP扩展的例子分享