Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 8433

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>nsapi_virtual</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="NSAPI-specific Functions"
HREF="ref.nsapi.html"><LINK
REL="PREVIOUS"
TITLE="nsapi_response_headers"
HREF="function.nsapi-response-headers.html"><LINK
REL="NEXT"
TITLE="Object Aggregation/Composition Functions"
HREF="ref.objaggregation.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
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.nsapi-response-headers.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="ref.objaggregation.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.nsapi-virtual"
></A
>nsapi_virtual</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN155427"
></A
><P
>    (PHP 4 &#62;= 4.3.3, PHP 5)</P
>nsapi_virtual&nbsp;--&nbsp;Perform an NSAPI sub-request</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN155430"
></A
><H2
>说明</H2
>bool <B
CLASS="methodname"
>nsapi_virtual</B
> ( string uri )<BR
></BR
><P
>&#13;   <B
CLASS="function"
>nsapi_virtual()</B
> is an NSAPI-specific function which
   is equivalent to &#60;!--#include virtual...--&#62; in SSI
   (<TT
CLASS="filename"
>.shtml</TT
> files). It does an NSAPI sub-request.
   It is useful for including CGI scripts or .shtml files, or anything
   else that you'd parse through webserver.
  </P
><P
>&#13;   To run the sub-request, all buffers are terminated and flushed to the
   browser, pending headers are sent too.
  </P
><P
>&#13;   You cannot make recursive requests with this function to other PHP scripts.
   If you want to include PHP scripts, use <A
HREF="function.include.html"
><B
CLASS="function"
>include()</B
></A
> or
   <A
HREF="function.require.html"
><B
CLASS="function"
>require()</B
></A
>.
  </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
    This function depends on a undocumented feature of the Netscape/iPlanet/Sun
    webservers. Use <A
HREF="function.phpinfo.html"
><B
CLASS="function"
>phpinfo()</B
></A
> to determine if it is available.
    In the Unix environment it should always work, in Windows it depends on the name of
    a <TT
CLASS="filename"
>ns-httpdXX.dll</TT
> file.
   </P
><P
>&#13;    Read the note about subrequests in the NSAPI section (<A
HREF="install.unix.sun.html#install.unix.sun.notes"
>UNIX</A
>, <A
HREF="install.windows.sun.html#install.windows.sun.notes"
>Windows</A
>) if you experience
    this problem.
   </P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN155452"
></A
><H2
>参数</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>uri</CODE
></DT
><DD
><P
>&#13;       The URI of the script.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN155461"
></A
><H2
>返回值</H2
><P
>&#13;   如果成功则返回 <TT
CLASS="constant"
><B
>TRUE</B
></TT
>,失败则返回 <TT
CLASS="constant"
><B
>FALSE</B
></TT
>。
  </P
></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.nsapi-response-headers.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="ref.objaggregation.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>nsapi_response_headers</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.nsapi.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Object Aggregation/Composition Functions</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>