downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | 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 Git repository for this website on git.php.net.

Source of: /manual/pt_BR/apache.configuration.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/apache.setup.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'pt_BR',
  ),
 
'this' =>
  array (
   
0 => 'apache.configuration.php',
   
1 => 'Configura&ccedil;&otilde;es em Execu&ccedil;&atilde;o',
  ),
 
'up' =>
  array (
   
0 => 'apache.setup.php',
   
1 => 'Instala&ccedil;&atilde;o/Configura&ccedil;&atilde;o',
  ),
 
'prev' =>
  array (
   
0 => 'apache.installation.php',
   
1 => 'Instala&ccedil;&atilde;o',
  ),
 
'next' =>
  array (
   
0 => 'apache.resources.php',
   
1 => 'Tipos de Recurso',
  ),
 
'alternatives' =>
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="apache.configuration" class="section">
 <h2 class="title">Configurações em Execução</h2>
 <p class="para">
  O comportamento do módulo PHP sob o Apache é afetado pelas configurações
  no <var class="filename">php.ini</var>. As diretivas de configuração no <var class="filename">php.ini</var> podem ser sobrescritas
  por <a href="configuration.changes.php#configuration.changes.apache" class="link">diretivas php_flag</a>
  no arquivo de configuração do servidor ou por arquivos <var class="filename">.htaccess</var> locais.
 </p>
 <div class="example" id="example-4190">
  <p><strong>Exemplo #1 Desligando a interpretação do PHP em um diretório com o <var class="filename">.htaccess</var></strong></p>
  <div class="example-contents"><div class="cdata"><pre>php_flag engine off</pre></div></div>

 </div>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Opções de configuração do Apache</strong></caption>
  
    <thead>
     <tr>
      <th>Nome</th>
      <th>Padrão</th>
      <th>Modificável</th>
      <th>Changelog</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>engine</td>
      <td>&quot;1&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>Disponível desde o PHP 4.0.5.</td>
     </tr>

     <tr>
      <td>child_terminate</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>Disponível desde o PHP 4.0.5.</td>
     </tr>

     <tr>
      <td>last_modified</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>Disponível desde o PHP 4.0.5.</td>
     </tr>

     <tr>
      <td>xbithack</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>Disponível desde o PHP 4.0.5.</td>
     </tr>

    </tbody>
  
  </table>

  Para mais detalhes e definições dos modos
 PHP_INI_*, veja <a href="configuration.changes.modes.php" class="xref">Aonde uma configura&ccedil;&atilde;o deve ser definida</a>.
 </p>
 
 <p class="para">Here&#039;s a short explanation of
the configuration directives.</p>
 
 <p class="para">
  <dl>

   <dt id="ini.engine">
    <span class="term">
     <em><code class="parameter">engine</code></em>
     <span class="type"><a href="language.types.boolean.php" class="type boolean">boolean</a></span>
    </span>
    <dd>

     <p class="para">
      Torna interpretação do PHP on ou off.
      Esta diretiva somente é útil para a versão módulo do Apache
      do PHP. Ela pode ser usada para ligar ou desligar
      a interpretação do PHP em nível de diretório ou em nível
      de servidor virtual. Colocando <strong class="userinput"><code>engine off</code></strong>
      nos lugares apropriados do arquivo <var class="filename">httpd.conf</var>, o PHP pode
      ser ativado ou desativado.
     </p>
    </dd>

   </dt>

   <dt id="ini.child-terminate">
    <span class="term">
     <em><code class="parameter">child_terminate</code></em>
     <span class="type"><a href="language.types.boolean.php" class="type boolean">boolean</a></span>
    </span>
    <dd>

     <p class="para">
      Especifica se scripts PHP podem requisitar termino de processos filhos no final da
      requisição, veja também  <span class="function"><a href="function.apache-child-terminate.php" class="function">apache_child_terminate()</a></span>.
     </p>
    </dd>

   </dt>

   <dt id="ini.last-modified">
    <span class="term">
     <em><code class="parameter">last_modified</code></em>
     <span class="type"><a href="language.types.boolean.php" class="type boolean">boolean</a></span>
    </span>
    <dd>

     <p class="para">
      Envia data de modificação de scripts PHP com cabeçalho
      Last-Modified: para esta requisição.
     </p>
    </dd>

   </dt>

   <dt id="ini.xbithack">
    <span class="term">
     <em><code class="parameter">xbithack</code></em>
     <span class="type"><a href="language.types.boolean.php" class="type boolean">boolean</a></span>
    </span>
    <dd>

     <p class="para">
      Parse files with executable bit set as PHP regardless of their file ending.
     </p>
    </dd>

   </dt>

  </dl>

 </p>

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