PHP安装步骤(以apache 2 + php5.3为例)
1.
Download Apache for windows MSI
file, and run it
By
default, port is 80, root dir is %apache_dir%/htdocs. You can update the
settings in conf/httpd.conf file
2. If Apache Service can't be installed in "Control Panel > Admin Tools > Services",
Execute following command in %apache_dir%/bin
httpd.exe -k install -n Apache2.2
另外几个有用的命令:
remove apache service: httpd.exe -k uninstall -n Apache2.2
start apache service from : httpd.exe -k start
stop apache service: httpd.exe -k stop or
httpd.exe -k shutdown
restart apache service: httpd.exe -k restart
如果不通过windows Apache service,你可以直接使用下列命令:
start apache server: httpd
stop apache server:
httpd.exe -k shutdown
restart apache server: httpd.exe -k restart
2.
Test if apache server works
1)
Start server: start “Apache
service” from “Control Panel > select “Start > Programs > Apache http
server 2 > control apache server > start” or start serve
相关文档:
查看完整版本 : 【原创】我用php写的对称加密算法,大家看看安全性如何。
panic
2006-02-05, 22:37
//php已经有了完整的加密/解密库支持,但是在一些主机上,这些库没有被启用,所以出于无奈,才写了下面的算法。
//基本原理是:用明文的和key的组合生成crc,然后用这个crc和key组合生成一个hash掩码,用hash掩码和明文 ......
PHP源代码分析
当前版本PHP5.3.1
目录结构
build 和编译有关的目录。
ext 扩展库代码,例如 Mysql、zlib、iconv 等我们熟悉的扩展库。
main 主目录。
netware
pear
sapi 和各种服务器的接口调用,例如apache、IIS等,也包含一般的fastcgi、cgi等。
scripts Linux 下的脚本目录。
tests 测试脚本目录
TSRM
win32 ......
<?php
function vCode($num=4,$size=20, $width=0,$height=0){
!$width && $width = $num*$size*4/5+5;
!$height && $height = $size + 10;
// 去掉了 0 1 O l 等
$str = "23456789abcdefghijkmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVW";
$code ......
MYSQL数据库中的常用SQL语句
1、SELECT 查询语句和条件语句
SELECT 查询字段 from 表名 WHERE 条件
查询字段:可以使用通配符* 、字段名、字段别名
表名: 数据库.表名 ,表名
常用条件: = 等于 、<>不等于、in 包含 、&nb ......