-p Do not encrypt the password (plaintext). //不加密口令
-s Force SHA encryption of the password. //使用sha算法加密
-b Use the password from the command line rather than prompting for it. //互交方式
On Windows, TPF and NetWare systems the \'-m\' flag is used by default.
On all other systems, the \'-p\' flag will probably not work.
——————————————————————————————————————
列子:
d:\\Apache\\bin>htpasswd.exe -c d:\\apache\\user taotao
Automatically using MD5 format on Windows.
New password: ***
Re-type new password: ***
Adding password for user taotao
就创建完成了
其中,要注意的
passwordfile,不应该放到web目录,因为会被人下载,很蠢,虽然密码已经被md5过
-c 参数是用于创建一个新的密码文件。
d:\\apache\\user路径,要和你在
AuthUserFile d:/Apache/user 设置的一致。
然后从新启动你的apache服务
记得备份你的httpd.conf,php.ini和my.ini
安装ZendOptimizer-2[1].1.0a-Windows-i386.exe
很简单,它回自动修改你的php.ini(c:\\winnt\\php.ini)文件
添加了如下内容:
[Zend]
zend_optimizer.optimization_level=15
zend_extension_ts=\"C:\\Program Files\\Zend\\lib\\ZendOptimizer.dll\"
安装php优化器有很多的好处
加速了php的运行速度,最为重要的是它可以加密php脚本
这样你写在php脚本里的user ,pass就可以很好的被保护了
此外,你还可以修改apache的header,用utraedit32打开ApacheCore.dll
查找你所对应的apache版本号,改成别的就可以了,比如我改成了 2000

发表评论