<?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-getenv.php',
    1 => 'apache_getenv',
    2 => 'Get an Apache subprocess_env variable',
  ),
  'up' => 
  array (
    0 => 'ref.apache.php',
    1 => 'Funzioni Apache',
  ),
  'prev' => 
  array (
    0 => 'function.apache-get-version.php',
    1 => 'apache_get_version',
  ),
  'next' => 
  array (
    0 => 'function.apache-lookup-uri.php',
    1 => 'apache_lookup_uri',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/apache/functions/apache-getenv.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.apache-getenv" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">apache_getenv</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">apache_getenv</span> &mdash; <span class="dc-title">Get an Apache subprocess_env variable</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.apache-getenv-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>apache_getenv</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$variable</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$walk_to_top</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Retrieve an Apache environment variable specified by 
   <code class="parameter">variable</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.apache-getenv-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">variable</code></dt>
     <dd>
      <p class="para">
       The Apache environment variable
      </p>
     </dd>
    
    
     <dt><code class="parameter">walk_to_top</code></dt>
     <dd>
      <p class="para">
       Whether to get the top-level variable available to all Apache layers.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.apache-getenv-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   The value of the Apache environment variable on success, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on
   failure
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.apache-getenv-examples">
  <h3 class="title">Esempi</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 <span class="function"><strong>apache_getenv()</strong></span> example</strong></p>
    <div class="example-contents"><p>
     The example above shows how to retrieve the value of the Apache
     environment variable <var class="varname">SERVER_ADDR</var>.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$ret </span><span style="color: #007700">= </span><span style="color: #0000BB">apache_getenv</span><span style="color: #007700">(</span><span style="color: #DD0000">"SERVER_ADDR"</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$ret</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Il precedente esempio visualizzerà
qualcosa simile a:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">42.24.42.240</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.apache-getenv-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.apache-setenv.php" class="function" rel="rdfs-seeAlso">apache_setenv()</a> - Imposta una variabile Apache subprocess_env</span></li>
    <li><span class="function"><a href="function.getenv.php" class="function" rel="rdfs-seeAlso">getenv()</a> - Restituisce il valore di una variabile d'ambiente</span></li>
    <li><a href="language.variables.superglobals.php" class="link">Superglobals</a></li>
   </ul>
  </p>
 </div>

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