<!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="Manual do 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" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.nsapi-response-headers.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="ref.objaggregation.html" ACCESSKEY="N" >Próxima</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="AEN150194" ></A ><P > (PHP 4 >= 4.3.3, PHP 5)</P >nsapi_virtual -- Perform an NSAPI sub-request</DIV ><DIV CLASS="refsect1" ><A NAME="AEN150197" ></A ><H2 >Descrição</H2 >bool <B CLASS="methodname" >nsapi_virtual</B > ( string uri )<BR ></BR ><P > <B CLASS="function" >nsapi_virtual()</B > is an NSAPI-specific function which is equivalent to <!--#include virtual...--> 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 > To run the sub-request, all buffers are terminated and flushed to the browser, pending headers are sent too. </P ><P > 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 >Nota: </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 > 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="AEN150219" ></A ><H2 >Parâmetros</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" >uri</CODE ></DT ><DD ><P > The URI of the script. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN150228" ></A ><H2 >Valores de retornado</H2 ><P > Retorna <TT CLASS="constant" ><B >TRUE</B ></TT > em caso de sucesso ou <TT CLASS="constant" ><B >FALSE</B ></TT > em falhas. </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" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="ref.objaggregation.html" ACCESSKEY="N" >Próxima</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" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Object Aggregation/Composition Functions</TD ></TR ></TABLE ></DIV ></BODY ></HTML >