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/configuration.changes.modes.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/configuration.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'configuration.changes.modes.php',
   
1 => 'Where a configuration setting may be set',
  ),
 
'up' =>
  array (
   
0 => 'configuration.php',
   
1 => 'Runtime Configuration',
  ),
 
'prev' =>
  array (
   
0 => 'configuration.file.per-user.php',
   
1 => '.user.ini files',
  ),
 
'next' =>
  array (
   
0 => 'configuration.changes.php',
   
1 => 'How to change configuration settings',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="configuration.changes.modes" class="sect1">
   <h2 class="title">Where a configuration setting may be set</h2>

   <p class="para">
    These modes determine when and where a PHP directive may or may not
    be set, and each directive within the manual refers to one of these
    modes. For example, some settings may be set within a PHP script
    using <a href="function.ini-set.php" class="function">ini_set()</a>, whereas others may require
    <var class="filename">php.ini</var> or <var class="filename">httpd.conf</var>.
   </p>

   <p class="para">
    For example, the
    <a href="outcontrol.configuration.php#ini.output-buffering" class="link">output_buffering</a> setting
    is <i>PHP_INI_PERDIR</i> therefore it may not be set using
    <a href="function.ini-set.php" class="function">ini_set()</a>. However, the
    <a href="errorfunc.configuration.php#ini.display-errors" class="link">display_errors</a> directive is
    <i>PHP_INI_ALL</i> therefore it may be set anywhere,
    including with <a href="function.ini-set.php" class="function">ini_set()</a>.
   </p>

   <p class="para">
    </p><table class="doctable table">
     <caption><b>Definition of PHP_INI_* modes</b></caption>
    
      <thead valign="middle">
       <tr valign="middle">
        <th>Mode</th>
        <th>Value</th>
        <th>Meaning</th>
       </tr>

      </thead>

      <tbody valign="middle" class="tbody">
       <tr valign="middle">
        <td align="left"><i>PHP_INI_USER</i></td>
        <td align="left">1</td>
        <td align="left">
         Entry can be set in user scripts (like with <a href="function.ini-set.php" class="function">ini_set()</a>)
         or in the <a href="configuration.changes.php#configuration.changes.windows" class="link">Windows registry</a>
        </td>
       </tr>

       <tr valign="middle">
        <td align="left"><i>PHP_INI_PERDIR</i></td>
        <td align="left">6</td>
        <td align="left">Entry can be set in <var class="filename">php.ini</var>, <var class="filename">.htaccess</var> or <var class="filename">httpd.conf</var></td>
       </tr>

       <tr valign="middle">
        <td align="left"><i>PHP_INI_SYSTEM</i></td>
        <td align="left">4</td>
        <td align="left">Entry can be set in <var class="filename">php.ini</var> or <var class="filename">httpd.conf</var></td>
       </tr>

       <tr valign="middle">
        <td align="left"><i>PHP_INI_ALL</i></td>
        <td align="left">7</td>
        <td align="left">Entry can be set anywhere</td>
       </tr>

      </tbody>
    
    </table>
<p>
   </p>
  </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites