<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.filesystem.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.readfile.php',
    1 => 'readfile',
    2 => 'Invia un file',
  ),
  'up' => 
  array (
    0 => 'ref.filesystem.php',
    1 => 'Filesystem Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.popen.php',
    1 => 'popen',
  ),
  'next' => 
  array (
    0 => 'function.readlink.php',
    1 => 'readlink',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/filesystem/functions/readfile.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.readfile" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">readfile</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">readfile</span> &mdash; <span class="dc-title">Invia un file</span></p>

   </div>
   <div class="refsect1 unknown-649" id="refsect1-function.readfile-unknown-649">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>readfile</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$use_include_path</code><span class="initializer"> = ?</span></span>, <span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$context</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">
     Legge un file e lo scrive nello standard output.
    </p>
    <p class="para">
     Restituisce il numero di byte letti dal file. Se si verifica un errore
     viene restituito <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> e se la funzione non è stata chiamata come
     @<span class="function"><strong>readfile()</strong></span>, un messaggio d&#039;errore verra stampato.
    </p>
    <div class="tip"><strong class="tip">Suggerimento</strong><p class="simpara">È possibile utilizzare una URL come un
nome di file con questa funzione se <a href="filesystem.configuration.php#ini.allow-url-fopen" class="link">fopen wrappers</a> è stata abilitata.
Vedere <span class="function"><a href="function.fopen.php" class="function">fopen()</a></span> per maggiori informazioni su come specificare 
i nomi di file. Vedere <a href="wrappers.php" class="xref">Supported Protocols and Wrappers</a> per i link verso le informazioni
sulle capacità dei vari wrapper, note sul loro uso,
informazioni sulle variabili predefinite che
forniscono.</p></div>
    <p class="para">
     Puoi settare il secondo parametro opzionale ad <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, se
     vuoi anche cercare il file nella <a href="ini.core.php#ini.include-path" class="link">include_path</a>.
    </p>
    <p class="para">
     Vedere anche <span class="function"><a href="function.fpassthru.php" class="function">fpassthru()</a></span>,
     <span class="function"><a href="function.file.php" class="function">file()</a></span>, <span class="function"><a href="function.fopen.php" class="function">fopen()</a></span>,
     <span class="function"><a href="function.include.php" class="function">include</a></span>, <span class="function"><a href="function.require.php" class="function">require</a></span> 
     <span class="function"><a href="function.virtual.php" class="function">virtual()</a></span>, <span class="function"><a href="function.file-get-contents.php" class="function">file_get_contents()</a></span>
     e <a href="wrappers.php" class="xref">Supported Protocols and Wrappers</a>.
    </p>
   </div>

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