migration5.cli-cgi.html

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

HTML
43
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>CLI and CGI</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="migration5.incompatible.html">Backward Incompatible Changes</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration5.configuration.html">Migrating Configuration Files</a></div> <div class="up"><a href="migration5.html">Migrating from PHP 4 to PHP 5.0.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="migration5.cli-cgi" class="section">   <h2 class="title">CLI and CGI</h2>   <p class="para">    In PHP 5 there were some changes in CLI and CGI filenames. In PHP 5, the    CGI version was renamed to <var class="filename">php-cgi.exe</var> (previously    <var class="filename">php.exe</var>) and the CLI version now sits in the main    directory (previously <var class="filename">cli/php.exe</var>).   </p>   <p class="para">    In PHP 5 it was also introduced a new mode:    <var class="filename">php-win.exe</var>. This is equal to the CLI version, except    that php-win doesn&#039;t output anything and thus provides no console (no &quot;dos    box&quot; appears on the screen). This behavior is similar to php-gtk.   </p>   <p class="para">    In PHP 5, the CLI version will always populate the global     <var class="varname"><a href="reserved.variables.argv.html" class="classname">$argv</a></var> and <var class="varname"><a href="reserved.variables.argc.html" class="classname">$argc</a></var> variables regardless    of any <var class="filename">php.ini</var> directive setting.  Even having      <a href="ini.core.html#ini.register-argc-argv" class="link">register_argc_argv</a> set to    <i>off</i> will have no affect in CLI.   </p>   <p class="para">    See also the <a href="features.commandline.html" class="link">command line     reference</a>.   </p>  </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration5.incompatible.html">Backward Incompatible Changes</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration5.configuration.html">Migrating Configuration Files</a></div> <div class="up"><a href="migration5.html">Migrating from PHP 4 to PHP 5.0.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

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