<?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.feof.php',
    1 => 'feof',
    2 => 'Verifica se &egrave; stata raggiunta la fine del file su un puntatore a file',
  ),
  'up' => 
  array (
    0 => 'ref.filesystem.php',
    1 => 'Filesystem Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.fdatasync.php',
    1 => 'fdatasync',
  ),
  'next' => 
  array (
    0 => 'function.fflush.php',
    1 => 'fflush',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/filesystem/functions/feof.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.feof" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">feof</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">feof</span> &mdash; <span class="dc-title">Verifica se è stata raggiunta la fine del file su un puntatore a file</span></p>

   </div>
   <div class="refsect1 unknown-550" id="refsect1-function.feof-unknown-550">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>feof</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$handle</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

    <p class="para rdfs-comment">
     Restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> se il puntatore al file ha raggiunto la fine del file (EOF)
     o si è verificato un errore (anche in caso di timeout del socket); altrimenti restituisce <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
    </p>
     <div class="warning"><strong class="warning">Avviso</strong>
      <p class="simpara">
       Se una connessione aperta da <span class="function"><a href="function.fsockopen.php" class="function">fsockopen()</a></span> non è stata chiusa 
       dal server, <span class="function"><strong>feof()</strong></span> attenderà finchè un timeout 
       non sia stato raggiunto e restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>. Il valore di timeout di default è
       60 secondi. Si può usare <span class="function"><a href="function.stream-set-timeout.php" class="function">stream_set_timeout()</a></span> per cambiare questo
       valore.
      </p>
     </div>
    <p class="para">Il puntatore al file deve essere valido, e deve puntare ad
un file aperto con successo da <span class="function"><a href="function.fopen.php" class="function">fopen()</a></span> o
<span class="function"><a href="function.fsockopen.php" class="function">fsockopen()</a></span> (e non ancora chiuso da
<span class="function"><a href="function.fclose.php" class="function">fclose()</a></span>).</p>
   </div>

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