<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.set-include-path.php',
    1 => 'set_include_path',
    2 => 'Imposta include_path',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP Options/Info Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.restore-include-path.php',
    1 => 'restore_include_path',
  ),
  'next' => 
  array (
    0 => 'function.set-time-limit.php',
    1 => 'set_time_limit',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/info/functions/set-include-path.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.set-include-path" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">set_include_path</h1>
    <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">set_include_path</span> &mdash; <span class="dc-title">
     Imposta include_path
    </span></p>

   </div>
   <div class="refsect1 unknown-124" id="refsect1-function.set-include-path-unknown-124">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>set_include_path</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$new_include_path</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

    <p class="simpara">
     Imposta il parametro di configurazione <a href="ini.core.php#ini.include-path" class="link">include_path</a> 
     per la durata dello script. La funzione restituisce la vecchia impostazione di
     <a href="ini.core.php#ini.include-path" class="link">include_path</a> se ha successo, oppure
     <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> se non riesce.
    </p>
    <p class="para">
     <div class="example" id="example-1">
      <p><strong>Example #1 Esempio di uso di <span class="function"><strong>set_include_path()</strong></span></strong></p>
      <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// A partire da PHP 4.3.0<br /></span><span style="color: #0000BB">set_include_path</span><span style="color: #007700">(</span><span style="color: #DD0000">'/inc'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// In tutte le versioni di PHP<br /></span><span style="color: #0000BB">ini_set</span><span style="color: #007700">(</span><span style="color: #DD0000">'include_path'</span><span style="color: #007700">, </span><span style="color: #DD0000">'/inc'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
      </div>

     </div>
    </p>
    <p class="simpara">
     Vedere anche <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span>,
     <span class="function"><a href="function.get-include-path.php" class="function">get_include_path()</a></span>,
     <span class="function"><a href="function.restore-include-path.php" class="function">restore_include_path()</a></span> e
     <span class="function"><a href="function.include.php" class="function">include</a></span>.
    </p>
   </div>

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