<?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.unlink.php',
    1 => 'unlink',
    2 => 'Cancella un file',
  ),
  'up' => 
  array (
    0 => 'ref.filesystem.php',
    1 => 'Filesystem Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.umask.php',
    1 => 'umask',
  ),
  'next' => 
  array (
    0 => 'book.inotify.php',
    1 => 'Inotify',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/filesystem/functions/unlink.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

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

   </div>
   <div class="refsect1 unknown-682" id="refsect1-function.unlink-unknown-682">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>unlink</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.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.boolean.php" class="type bool">bool</a></span></div>

    <p class="para rdfs-comment">
     Cancella <code class="parameter">filename</code>.  Simile alla funzione C di Unix 
     unlink(). Restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> in caso di successo, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
    </p>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <span class="simpara">
      Dal PHP 5.0.0 <span class="function"><strong>unlink()</strong></span> potrà essere utilizzata anche
      con <em>qualche</em> wrapper URL. Fare riferimento a <a href="wrappers.php" class="xref">Supported Protocols and Wrappers</a>
      per avere la lista di quali wrapper supportano <span class="function"><strong>unlink()</strong></span>.
     </span>
    </p></blockquote>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <span class="simpara">
      Il parametro <code class="parameter">context</code> è stato aggiunto in PHP 5.0.0.
     </span>
    </p></blockquote>
    <p class="para">
     Restituisce 0 o <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso d&#039;errore.
    </p>
    <p class="para">
     Vedere anche <span class="function"><a href="function.rmdir.php" class="function">rmdir()</a></span> per eliminare directory.
    </p>
   </div>

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