<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.streamwrapper.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'streamwrapper.unlink.php',
    1 => 'streamWrapper::unlink',
    2 => 'Remove um arquivo',
  ),
  'up' => 
  array (
    0 => 'class.streamwrapper.php',
    1 => 'streamWrapper',
  ),
  'prev' => 
  array (
    0 => 'streamwrapper.stream-write.php',
    1 => 'streamWrapper::stream_write',
  ),
  'next' => 
  array (
    0 => 'streamwrapper.url-stat.php',
    1 => 'streamWrapper::url_stat',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'pt_BR',
    'path' => 'reference/stream/streamwrapper/unlink.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="streamwrapper.unlink" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">streamWrapper::unlink</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">streamWrapper::unlink</span> &mdash; <span class="dc-title">Remove um arquivo</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-streamwrapper.unlink-description">
  <h3 class="title">Descrição</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>streamWrapper::unlink</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$path</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Este método é chamado em resposta a <span class="function"><a href="function.unlink.php" class="function">unlink()</a></span>.
  </p>
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
   <p class="para">
    Para que a mensagem de erro apropriada seja retornada, este método
    <em>não</em> deve ser definido se o empacotador não suportar
    remoção de arquivos.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-streamwrapper.unlink-parameters">
  <h3 class="title">Parâmetros</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">path</code></dt>
     <dd>
      <p class="para">
       A URL do arquivo que deve ser removido.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-streamwrapper.unlink-returnvalues">
  <h3 class="title">Valor Retornado</h3>
  <p class="para">
   Retorna <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> em caso de sucesso ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> em caso de falha.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-streamwrapper.unlink-errors">
  <h3 class="title">Erros/Exceções</h3>
  <p class="para">Emite
um <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> se a chamada a este método falhar
(ou seja, não implementado).</p>
 </div>




 <div class="refsect1 notes" id="refsect1-streamwrapper.unlink-notes">
  <h3 class="title">Notas</h3>
  <blockquote class="note"><p><strong class="note">Nota</strong>: <p class="para">A
propriedade <var class="varname">streamWrapper::$context</var>
será atualizada se um contexto válido for passado para a função invocadora.</p></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-streamwrapper.unlink-seealso">
  <h3 class="title">Veja Também</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.unlink.php" class="function" rel="rdfs-seeAlso">unlink()</a> - Apaga um arquivo</span></li>
    <li><span class="methodname"><a href="streamwrapper.rmdir.php" class="methodname" rel="rdfs-seeAlso">streamWrapper::rmdir()</a> - Remove um diret&oacute;rio</span></li>
   </ul>
  </p>
 </div>


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