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 ......
通常我们写一个类如下:
a.php
class A
{
public function __construct()
{
echo "hello world!";
}
}
page.php
require("a.php");
$a = new A();
我们是通过手工引用某个类的文件来实现函数或者类的加载
但是当系统比较庞大,以及这些类的文件很多的时候,这种方式就显得非� ......
准备:
lighttpd-1.4.15.tar.gz
php-4.4.2.tar.gz
mysql-5.0.20a.tar.gz
开始:
1 编译安装lighttpd
# tar zxvf lighttpd-1.4.15.tar.gz
# cd lighttpd-1.4.15
# ls
# ./configure --prefix=/usr/local/lighttpd //此部无法编译时提示安装prce-devel
#&nbs ......
PHP取得成功的一个主要原因之一是她拥有大量的可用扩展。web开发者无论有何种需求,这种需求最有可能在PHP发行包里找到。PHP发行包包括支持各种数据库,图形文件格式,压缩,XML技术扩展在内的许多扩展。
扩展API的引入使PHP取得了巨大的进展,扩展API机制使PHP开发社区很容易的开发出几十种扩展。。扩展主要的思想是 ......
php连接mysql测试代码:
$link=mysql_connect('localhost','root','123456');
if(!$link) echo "失败!";
else echo "成功!";
mysql_close();
?>
运行代码出现:Call to undefined function 'mysql_connect()'… 失败
百度找到结果是PHP+MYSQL 环境� ......