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
相关文档:
Perl is a language often associated with text processing and CGI. PHP is
a language often associated with dynamic Web pages. Both are very popular
with Web developers. Often, each of these languages is used at the expense of
the other. Hard-core Perl developers would love to develop everyth ......
PHP 向它运行的任何脚本提供了大量的预定义常量
。不过很多常量都是由不同的扩展库定义的,只有在加载了这些扩展库时才会出现,或者动态加载后,或者在编译时已经包括进去了。
有五个魔术常量根据它们使用的位置而改变。例如 __LINE__
的值就依赖于它在脚本中所处的行来决定。这些特殊的常量不区分大小写,如下:
表 ......
查看完整版本 : 【原创】我用php写的对称加密算法,大家看看安全性如何。
panic
2006-02-05, 22:37
//php已经有了完整的加密/解密库支持,但是在一些主机上,这些库没有被启用,所以出于无奈,才写了下面的算法。
//基本原理是:用明文的和key的组合生成crc,然后用这个crc和key组合生成一个hash掩码,用hash掩码和明文 ......
在网上找了很多IIS+PHP的配置的方法,试过之后很多都不能达到效果。于是总结了大部分的文章后就得出了这样的方法:(本次操作系统以Win2000为例,如果你要改为其它系统就把系统根目录变一下就Ok了)
一、下载必须的程序:
(1) 先到PHP的官方网站下载一个PHP(本文就以PHP 4.4.2为例)。 ......
Jpgraph下载之后,安装非常简单,解压到一个文件夹中,例如:d:\Jpgraph,然后打开php的安装目录,找到php.ini文件,并修改其中的inlude_path参数,并在其后加上Jpgraph的路径,例如:inlude_path=".;d:\Jpgraph".
http://blog.csdn.net/zhuzhao/archive/2009/05/12/4174684.aspx ......