install.unix.commandline.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 71 行

HTML
71
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>CGI and command line setups</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="install.unix.sun.html">Sun, iPlanet and Netscape servers on Sun Solaris</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.unix.hpux.html">HP-UX specific installation notes</a></div> <div class="up"><a href="install.unix.html">Installation on Unix systems</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="install.unix.commandline" class="sect1">   <h2 class="title">CGI and command line setups</h2>   <p class="para">    The default is to build PHP as a CGI program.  This creates a    command line interpreter, which can be used for CGI processing, or    for non-web-related PHP scripting.  If you are running a web    server PHP has module support for, you should generally go for    that solution for performance reasons.  However, the CGI version    enables users to run different PHP-enabled pages under    different user-ids.   </p>   <div class="warning"><b class="warning">Warning</b><p class="para">A server deployed in CGI mode is opento several possible vulnerabilities. Please read our<a href="security.cgi-bin.html" class="link">CGI security section</a> to learn how todefend yourself from such attacks.</p></div>   <p class="para">    As of PHP 4.3.0, some important additions have happened to PHP.  A new    SAPI named CLI also exists and it has the same name as the CGI binary.    What is installed at <i>{PREFIX}/bin/php</i> depends on your    configure line and this is described in detail in the manual section    named <a href="features.commandline.html" class="link">Using PHP from the command    line</a>. For further details please read that section of the manual.   </p>      <div id="install.unix.commandline.testing" class="sect2">    <h3 class="title">Testing</h3>    <p class="simpara">     If you have built PHP as a CGI program, you may test your build     by typing <strong class="command">make test</strong>.  It is always a good idea     to test your build.  This way you may catch a problem with PHP on     your platform early instead of having to struggle with it later.    </p>   </div>   <div id="install.unix.commandline.using-variables" class="sect2">    <h3 class="title">Using Variables</h3>    <p class="simpara">      Some <a href="reserved.variables.server.html" class="link">server supplied      environment variables</a> are not defined in the       current <a href="http://hoohoo.ncsa.uiuc.edu/cgi/env.html" class="link external">&raquo; CGI/1.1 specification</a>.      Only the following variables are defined there: <var class="varname">AUTH_TYPE</var>,       <var class="varname">CONTENT_LENGTH</var>, <var class="varname">CONTENT_TYPE</var>,      <var class="varname">GATEWAY_INTERFACE</var>, <var class="varname">PATH_INFO</var>,       <var class="varname">PATH_TRANSLATED</var>, <var class="varname">QUERY_STRING</var>,      <var class="varname">REMOTE_ADDR</var>, <var class="varname">REMOTE_HOST</var>,       <var class="varname">REMOTE_IDENT</var>, <var class="varname">REMOTE_USER</var>,      <var class="varname">REQUEST_METHOD</var>, <var class="varname">SCRIPT_NAME</var>,       <var class="varname">SERVER_NAME</var>, <var class="varname">SERVER_PORT</var>,      <var class="varname">SERVER_PROTOCOL</var>, and <var class="varname">SERVER_SOFTWARE</var>.      Everything else should be treated as &#039;vendor extensions&#039;.    </p>   </div>     </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="install.unix.sun.html">Sun, iPlanet and Netscape servers on Sun Solaris</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.unix.hpux.html">HP-UX specific installation notes</a></div> <div class="up"><a href="install.unix.html">Installation on Unix systems</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?