xp+iis5.1+php的配置方法
因为只有iis6.0才带有web扩展。而iis6.0是默认安装在win2003的。winxp是不能安装iis6.0的。那我们就用iis5.1吧。
环境:WINXP+IIS5.1
开始之前请先确定你的IIS安装是否成功,能否通过http://localhost
来
访问
一、先到PHP官方网下载个php-5.2.5-Win32.zip
,点击这里链接到官
网下载地址
二、下载好之后,直接全部接压至D:\php\
目
录即可得PHP文件存放目录D:\php\ (注:这里你可以解压到其他盘,例如D盘或E盘,可以自己指
定,这个不是关键步骤,这里以D盘作为例子
)
三、将D:\PHP目录下的php.exe
、php-win.exe
和php.ini-dist
三个文件拷到C:\Windows
( Windows 2000 下为 C:\WINNT)下;
将C:\Windows\php.ini-dist
改
名为php.ini
,然后用记事本打开,利用记事本的查
找功能搜索register_globals = Off
,
将 Off
改成 On
,搜索extension_dir
=
,并将其路径指到你的 PHP 目录下的 extensions
目录,比如:extension_dir = "D:\php\ext"
;
将以下内容前面的;
(注:分号)
去掉
;extension=php_dbase.dll
(可
选),;extension=php_gd2.dll
这个是用来支持GD库的,一般需要,必选 ;extension=php_ldap.dll
可选 ;extension=php_mbstring.dll
这不选一般用PHPMYADMIN会出红色提示,故必选 ;extension=php_mssql.dll
这个是用来支持MSSQL的,可选 ;extension=php_mysql.dll
这个是用来支持MYSQL的,要支持MYSQL必选;将
php
里面的
libmySQL.dll
复制到
C:\Windows\System32
找到extension_dir = "./"
,将其改为 extension_dir = "D:\php\ext"
;再找到 session.save_path = /tmp
,将其改为 session.save_path = D:\php\sessions
。(注:此时你需要在D:\php
目
录下建立sessions文件夹,以存放session 。
)
四、打开"Internet服务管理器
",
选择你想支持PHP的站点,打开属性页,点击"ISAPI筛选器
"
选项卡,点击"添加",在弹出的"筛选器属性"窗口的"筛选器名称
"
中填入"php
";在"可执行文件"中填入"D:\php\php5isapi.dll
",点击确定;
五、点击"主目录
"
选项卡,选择"应用程序设置"中的"配置
"按钮,在弹出
的"应用程序配置
"窗口中点击"添加
"按钮,在弹出的&quo
相关文档:
I’ve just updated Aptana Studio from 1.5 to 2.0 only to find out that the spectacular Aptana PHP plugin is not longer supported and its installation has been removed from the Install Additional Features view. However, with some tricks we can still install the old Aptana 1.5.1 in order to use i ......
一:结构和调用(实例化):
class className{} ,调用:$obj = new className();当类有构造函数时,还应传入参数。如$obj = new className($v,$v2...);
二:构造函数和析构函数:
1、构造函数用于初始化:使用__construct(),可带参数。
2、但析构函数不能带参数(用于在销去一个类之前执行一些操作或功能)。析构函数用 ......
知道差距了,努力吧!
1. Which of the following will not add john to the users array?
1. $users[] = 'john';
2. array_add($users,'john');
3. array_push($users,'john');
4. $users ||= 'john';
2. What's the difference between sort(), asort() and ksort? Under what circumstances would you use each o ......
<?php
//对象
class MyJson{
$id=1;
$site ......