Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9226

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>CLI and CGI</title>

 </head>
 <body><div class="manualnavbar" 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"><var class="varname"><a href="reserved.variables.argv.html" class="classname">$argv</a></var></var> and <var class="varname"><var class="varname"><a href="reserved.variables.argc.html" class="classname">$argc</a></var></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
    <em>off</em> 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 class="manualnavbar" 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>