<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.apache.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.apache-setenv.php',
    1 => 'apache_setenv',
    2 => 'Imposta una variabile Apache subprocess_env',
  ),
  'up' => 
  array (
    0 => 'ref.apache.php',
    1 => 'Funzioni Apache',
  ),
  'prev' => 
  array (
    0 => 'function.apache-response-headers.php',
    1 => 'apache_response_headers',
  ),
  'next' => 
  array (
    0 => 'function.getallheaders.php',
    1 => 'getallheaders',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/apache/functions/apache-setenv.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.apache-setenv" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">apache_setenv</h1>
    <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">apache_setenv</span> &mdash; <span class="dc-title">Imposta una variabile Apache subprocess_env</span></p>

   </div>
   <div class="refsect1 unknown-1189" id="refsect1-function.apache-setenv-unknown-1189">
    <h3 class="title">Descrizione</h3>
    <div class="methodsynopsis dc-description">
     <span class="methodname"><strong>apache_setenv</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$varibile</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$valore</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$vai_in_cima</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

    <p class="para rdfs-comment">
     <span class="function"><strong>apache_setenv()</strong></span> imposta il valore della variabile di
     environment di Apache specificata da
     <code class="parameter">variabile</code>.
    </p>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <p class="para">
      Quando si imposta una variabile di environment di Apache, la corrispondente variabile 
      $_SERVER non viene cambiata.
     </p>
    </p></blockquote>
    <div class="example" id="example-1">
     <p><strong>Example #1 Impostazione di una variabile di environment di Apache utilizzando <span class="function"><strong>apache_setenv()</strong></span></strong></p>
     <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />apache_setenv</span><span style="color: #007700">(</span><span style="color: #DD0000">"EXAMPLE_VAR"</span><span style="color: #007700">, </span><span style="color: #DD0000">"Valore di prova"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
     </div>

    </div>
    <p class="para">
     <span class="function"><strong>apache_setenv()</strong></span> può essere usata con
     <span class="function"><a href="function.apache-getenv.php" class="function">apache_getenv()</a></span> su pagine separate o impostare
     variabili da passare a Server Side Includes (.shtml) chr siano stati
     inclusi negli script PHP.
    </p>
    <p class="para">
     Vedere anche <span class="function"><a href="function.apache-getenv.php" class="function">apache_getenv()</a></span>.
    </p>
   </div>

  </div><?php manual_footer($setup); ?>