downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/migration5.cli-cgi.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/migration5.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'migration5.cli-cgi.php',
   
1 => 'CLI and CGI',
  ),
 
'up' =>
  array (
   
0 => 'migration5.php',
   
1 => 'Migrating from PHP 4 to PHP 5.0.x',
  ),
 
'prev' =>
  array (
   
0 => 'migration5.incompatible.php',
   
1 => 'Backward Incompatible Changes',
  ),
 
'next' =>
  array (
   
0 => 'migration5.configuration.php',
   
1 => 'Migrating Configuration Files',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<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.php" class="classname">$argv</a></var> and <var class="varname"><a href="reserved.variables.argc.php" class="classname">$argc</a></var> variables regardless
    of any <var class="filename">php.ini</var> directive setting.  Even having 
    <a href="ini.core.php#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.php" class="link">command line
    reference</a>.
   </p>
  </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites