<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >IIS Administration Functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="PHP 手册" HREF="index.html"><LINK REL="UP" TITLE="函数参考" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="id3_set_tag" HREF="function.id3-set-tag.html"><LINK REL="NEXT" TITLE="iis_add_server" HREF="function.iis-add-server.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP 手册</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.id3-set-tag.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.iis-add-server.html" ACCESSKEY="N" >下一页</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.iisfunc" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >LXIV. IIS Administration Functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN85765" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="iisfunc.intro" >简介</A ></H1 ><P > 本 <A HREF="http://pecl.php.net" TARGET="_top" >PECL</A > 扩展未绑定于 PHP 中。 This extension is available for Win32 only. It provides functions to administrate Microsoft Internet Information Server (IIS). The extension includes function to create web sites and virtual directories as well as configuring security and script mapping. These functions have been added in PHP 4. </P ><P > In order to use these functions you must enable the <TT CLASS="filename" >php_iisfunc.dll</TT > DLL inside of <TT CLASS="filename" >php.ini</TT >. 可以从 <A HREF="http://www.php.net/downloads.php" TARGET="_top" >PHP 下载页面</A >或者 <A HREF="http://snaps.php.net/" TARGET="_top" >http://snaps.php.net/</A > 下载此 <ACRONYM CLASS="acronym" >PECL</ACRONYM > 扩展的 <ACRONYM CLASS="acronym" >DLL</ACRONYM > 文件。 </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="iisfunc.requirements" >需求</A ></H1 ><P >要编译本扩展模块无需外部库文件。</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="iisfunc.installation" >安装</A ></H1 ><P >本扩展模块作为 PHP 内核的一部分,无需安装即可使用。</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="iisfunc.configuration" >运行时配置</A ></H1 ><P >本扩展模块在 <TT CLASS="filename" >php.ini</TT > 中未定义任何配置选项。</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="iisfunc.resources" >资源类型</A ></H1 ><P >本扩展模块未定义任何资源类型。</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="iisfunc.constants" >预定义常量</A ></H1 ><P >以下常量由本扩展模块定义,因此只有在本扩展模块被编译到 PHP 中,或者在运行时被动态加载后才有效。</P ><P ></P ><DIV CLASS="variablelist" ><DL ><DT ><TT CLASS="constant" ><B >IIS_READ</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >IIS_WRITE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >IIS_EXECUTE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >IIS_SCRIPT</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >IIS_ANONYMOUS</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >IIS_BASIC</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >IIS_NTLM</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >IIS_STARTING</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >IIS_STOPPED</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >IIS_PAUSED</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >IIS_RUNNING</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ></DL ></DIV ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >目录</B ></DT ><DT ><A HREF="function.iis-add-server.html" >iis_add_server</A > -- Creates a new virtual web server</DT ><DT ><A HREF="function.iis-get-dir-security.html" >iis_get_dir_security</A > -- Gets Directory Security</DT ><DT ><A HREF="function.iis-get-script-map.html" >iis_get_script_map</A > -- Gets script mapping on a virtual directory for a specific extension</DT ><DT ><A HREF="function.iis-get-server-by-comment.html" >iis_get_server_by_comment</A > -- Return the instance number associated with the Comment</DT ><DT ><A HREF="function.iis-get-server-by-path.html" >iis_get_server_by_path</A > -- Return the instance number associated with the Path</DT ><DT ><A HREF="function.iis-get-server-rights.html" >iis_get_server_rights</A > -- Gets server rights</DT ><DT ><A HREF="function.iis-get-service-state.html" >iis_get_service_state</A > -- Returns the state for the service defined by ServiceId</DT ><DT ><A HREF="function.iis-remove-server.html" >iis_remove_server</A > -- Removes the virtual web server indicated by ServerInstance</DT ><DT ><A HREF="function.iis-set-app-settings.html" >iis_set_app_settings</A > -- Creates application scope for a virtual directory</DT ><DT ><A HREF="function.iis-set-dir-security.html" >iis_set_dir_security</A > -- Sets Directory Security</DT ><DT ><A HREF="function.iis-set-script-map.html" >iis_set_script_map</A > -- Sets script mapping on a virtual directory</DT ><DT ><A HREF="function.iis-set-server-rights.html" >iis_set_server_rights</A > -- Sets server rights</DT ><DT ><A HREF="function.iis-start-server.html" >iis_start_server</A > -- Starts the virtual web server</DT ><DT ><A HREF="function.iis-start-service.html" >iis_start_service</A > -- Starts the service defined by ServiceId</DT ><DT ><A HREF="function.iis-stop-server.html" >iis_stop_server</A > -- Stops the virtual web server</DT ><DT ><A HREF="function.iis-stop-service.html" >iis_stop_service</A > -- Stops the service defined by ServiceId</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.id3-set-tag.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >起始页</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.iis-add-server.html" ACCESSKEY="N" >下一页</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >id3_set_tag</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >上一级</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >iis_add_server</TD ></TR ></TABLE ></DIV ></BODY ></HTML >