|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
算是1个熟悉的过程,所以c语言的基础有就更好,没有也不怕。
用PHP作为过滤器名字,供应 phpisapi.dll的途径
5. Under Home Directory, click on the Configuration button. Add a new entry to the Application Mappings. Use the path the
php4isapi.dll as the Executable, supply .php as the extension, leave Method exclusions, blank, and check the Script engine
checkbox
在主(home)目次,点击设置装备摆设按钮。增添一个新的法式映照进口。利用php4isapi.dll途径作为履行, .php 为扩大名,履行形式为空,选中剧本引擎
6. Stop IIS completely
完整中断 IIS
7. Start IIS again
从头启动 IIS
------------------------------------------------------------------------------------------
IIS 4.0+ (CGI)
1. Copy the php.ini-dist to your systemroot (the directory where you installed windows), rename it to php.ini, and
edit it to fit your needs
复制 php.ini-dist 到你的体系目次(装置 windows 的目次),更名字为 php.ini,同时编纂 php.ini 为你需求的设置装备摆设
2. Start the Microsoft Management Console (may appear as 'Internet Services Manager', either in your Windows NT 4.0
Option Pack branch or the Control Panel->Administrative Tools under Windows 2000).
运转 掌握台办理(能够为 IIS办事办理器,在你的 windows NT 4.0 的 Option Pace 局部,或win2000 的掌握面版下的超等用户东西下)
3. Right click on your Web server node (will most probably appear as 'Default Web Server'), and select 'Properties'.
右键点击你的 web 办事器节点(大多半能够显示为"默许WEB办事器"),选择属性
4. Under 'Home Directory', click on the 'Configuration' button.
在主目次下,选择'设置装备摆设'按钮
5.Add a new entry to the Application Mappings; Use the path to php.exe as the Executable, supply .php as the extension, leave
'Method exclusions', blank, and check the Script engine checkbox.
在主(home)目次,点击设置装备摆设按钮。增添一个新的法式映照进口。利用php4isapi.dll途径作为履行, .php 为扩大名,履行形式为空,选中剧本引擎
6. Put a .php file under your Web server's document root and check if it works!
在web主目次放一个 .php 文件,测试是不是任务
------------------------------------------------------------------------------------------
PWS 4.0+ (isapi):
1. Copy the php.ini-dist to your systemroot (the directory where you installed windows), rename it to php.ini, and
edit it to fit your needs
复制 php.ini-dist 到你的体系目次(装置 windows 的目次),更名字为 php.ini,同时编纂 php.ini 为你需求的设置装备摆设
2. Edit the enclosed PWS-php4isapi.reg (ISAPI interface) or PWS-php4cgi.reg (CGI interface) file to reflect the location of
your php4isapi.dll / php.exe. Forward slashes should be escaped, for example:
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesw3svcparametersScript Map] ".php"="C:Program FilesPHPphp4isapi.dll"
编纂附带的 PWS-php4isapi.reg (ISAPI 界面) 或 PWS-php4cgi.reg (CGI 界面)文件来指出你的 php4isapi.dll 或 php.exe 途径,右斜杠需求本义。
3. In the PWS Manager, right click on a given directory you want to add PHP support to, and select Properties. Check the 'Execute' checkbox, and confirm.
在PWS办理,右键点击想撑持 php 的途径,选择属性,选中履行。确认。
------------------------------------------------------------------------------------------
PWS 4.0+ (CGI):
1. Copy the php.ini-dist to your systemroot (the directory where you installed windows), rename it to php.ini, and
edit it to fit your needs
复制 php.ini-dist 到你的体系目次(装置 windows 的目次),更名字为 php.ini,同时编纂 php.ini 为你需求的设置装备摆设
2. Edit the enclosed PWS-php4.reg file to reflect the location of your php.exe. Forward slashes should be escaped,
for example:
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesw3svcparametersScript Map] ".php"="C:Program FilesPHPphp.exe"
编纂附带的 PWS-php4isapi.reg (ISAPI 界面) 或 PWS-php4cgi.reg (CGI 界面)文件来指出你的 php4isapi.dll 或 php.exe 途径,右斜杠需求本义。
3. In the PWS Manager, right click on a given directory you want to add PHP
support to, and select Properties. Check the 'Execute' checkbox, and
confirm.
在PWS办理,右键点击想撑持 php 的途径,选择属性,选中履行。确认。
4. At this point, PWS should have built-in PHP support.
不过还好,PHP语言给出的语法错误很详细,只要稍微熟悉一点之后,看错误提示就能很容易找出错误所在的。PHP还有一个特别好用的调试功能,在PHP语句中,你可以随时用echo来输出结果。 |
|