📄 function.nsapi-virtual.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Perform an NSAPI sub-request</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.nsapi.html">NSAPI Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="refs.basic.session.html">Session Extensions</a></div> <div class="up"><a href="ref.nsapi.html">NSAPI Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.nsapi-virtual" class="refentry"> <div class="refnamediv"> <h1 class="refname">nsapi_virtual</h1> <p class="verinfo">(PHP 4 >= 4.3.3, PHP 5)</p><p class="refpurpose"><span class="refname">nsapi_virtual</span> — <span class="dc-title">Perform an NSAPI sub-request</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>nsapi_virtual</b></b></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$uri</tt></span> )</div> <p class="para rdfs-comment"> <b>nsapi_virtual()</b> is an NSAPI-specific function which is equivalent to <!--#include virtual...--> in SSI (<var class="filename">.shtml</var> 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 class="para"> To run the sub-request, all buffers are terminated and flushed to the browser, pending headers are sent too. </p> <p class="para"> You cannot make recursive requests with this function to other PHP scripts. If you want to include PHP scripts, use <b>include()</b> or <b>require()</b>. </p> <blockquote><p><b class="note">Note</b>: This function depends on a undocumented feature of the Netscape/iPlanet/Sun webservers. Use <a href="function.phpinfo.html" class="function">phpinfo()</a> to determine if it is available. In the Unix environment it should always work, in Windows it depends on the name of a <var class="filename">ns-httpdXX.dll</var> file. <br /> Read the note about subrequests in the NSAPI section (<a href="install.unix.sun.html#install.unix.sun.notes" class="link">UNIX</a>, <a href="install.windows.sun.html#install.windows.sun.notes" class="link">Windows</a>) if you experience this problem. <br /> </p></blockquote> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">uri</tt></i></span> <dd> <p class="para"> The URI of the script. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure. </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.nsapi.html">NSAPI Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="refs.basic.session.html">Session Extensions</a></div> <div class="up"><a href="ref.nsapi.html">NSAPI Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -