⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phar.mungserver.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Defines a list of up to 4 $_SERVER variables that should be modified for execution</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="phar.mount.html">Phar::mount</a></div> <div class="next" style="text-align: right; float: right;"><a href="phar.offsetexists.html">Phar::offsetExists</a></div> <div class="up"><a href="class.Phar.html">Phar</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="phar.mungserver" class="refentry"> <div class="refnamediv">  <h1 class="refname">Phar::mungServer</h1>  <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">Phar::mungServer</span> &mdash; <span class="dc-title">Defines a list of up to 4 $_SERVER variables that should be modified for execution</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type"><span class="type void">void</span></span> <span class="methodname"><b><b>Phar::mungServer</b></b></span>    ( <span class="methodparam"><span class="type">array</span> <tt class="parameter">$munglist</tt></span>   )</div>  <p class="para rdfs-comment">   <b>Phar::mungServer()</b> should only be called within the   stub of a phar archive.  </p>  <p class="para">   Defines a list of up to 4 <var class="varname"><a href="reserved.variables.server.html" class="classname">$_SERVER</a></var> variables that should be   modified for execution.   Variables that can be modified to remove traces of phar execution are   <i>REQUEST_URI</i>, <i>PHP_SELF</i>,   <i>SCRIPT_NAME</i> and <i>SCRIPT_FILENAME</i>.  </p>  <p class="para">   On its own, this method does nothing.  Only when combined with   <a href="phar.webphar.html" class="function">Phar::webPhar()</a> does it take effect, and only when the requested   file is a PHP file to be parsed.  Note that the   <i>PATH_INFO</i> and <i>PATH_TRANSLATED</i> variables   are always modified.  </p>  <p class="para">   The original values of variables that are modified are stored in the SERVER   array with <i>PHAR_</i> prepended, so for instance   <i>SCRIPT_NAME</i> would be saved as <i>PHAR_SCRIPT_NAME</i>.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">munglist</tt></i></span>     <dd>      <p class="para">       an array containing as string indices any of       <i>REQUEST_URI</i>, <i>PHP_SELF</i>,       <i>SCRIPT_NAME</i> and <i>SCRIPT_FILENAME</i>.       Other values trigger an exception, and <b>Phar::mungServer()</b>       is case-sensitive.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   No return.  </p> </div> <div class="refsect1 errors">  <h3 class="title">Errors/Exceptions</h3>  <p class="para">   Throws <b class="classname">UnexpectedValueException</b> if any problems are   found with the passed in data.  </p> </div> <div class="refsect1 examples">  <h3 class="title">Examples</h3>  <p class="para">   <div class="example">    <p><b>Example #1 A <b>Phar::mungServer()</b> example</b></p>    <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;example&nbsp;stub<br /></span><span style="color: #0000BB">Phar</span><span style="color: #007700">::</span><span style="color: #0000BB">mungServer</span><span style="color: #007700">(array(</span><span style="color: #DD0000">'REQUEST_URI'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">Phar</span><span style="color: #007700">::</span><span style="color: #0000BB">webPhar</span><span style="color: #007700">();<br />__HALT_COMPILER();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>    </div>   </div>  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="phar.webphar.html" class="function" rel="rdfs-seeAlso">Phar::webPhar()</a></li>    <li class="member"><a href="phar.setstub.html" class="function" rel="rdfs-seeAlso">Phar::setStub()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="phar.mount.html">Phar::mount</a></div> <div class="next" style="text-align: right; float: right;"><a href="phar.offsetexists.html">Phar::offsetExists</a></div> <div class="up"><a href="class.Phar.html">Phar</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 + -