<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'streamwrapper.unlink.php',
    1 => 'streamWrapper::unlink',
    2 => 'ファイルを削除する',
  ),
  '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' => 'ja',
    '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">ファイルを削除する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-streamwrapper.unlink-description">
  <h3 class="title">説明</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">
   このメソッドは、<span class="function"><a href="function.unlink.php" class="function">unlink()</a></span> に対応してコールされます。
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    適切なエラーメッセージを返すためには、
    ラッパーがファイルの削除に対応していない場合にはこのメソッドを定義しては
    <em>いけません</em>。
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-streamwrapper.unlink-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">path</code></dt>
     <dd>
      <p class="para">
       削除したいファイルの URL。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-streamwrapper.unlink-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-streamwrapper.unlink-errors">
  <h3 class="title">エラー / 例外</h3>
  <p class="para">このメソッドのコールに
(未実装などの理由で) 失敗した場合、
<strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> を発行します。</p>
 </div>

 


 <div class="refsect1 notes" id="refsect1-streamwrapper.unlink-notes">
  <h3 class="title">注意</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: <p class="para">有効なコンテキストがコール元関数に渡された場合に
<var class="varname">streamWrapper::$context</var>
プロパティが更新されます。</p></p></blockquote>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-streamwrapper.unlink-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.unlink.php" class="function" rel="rdfs-seeAlso">unlink()</a> - ファイルを削除する</span></li>
    <li><span class="methodname"><a href="streamwrapper.rmdir.php" class="methodname" rel="rdfs-seeAlso">streamWrapper::rmdir()</a> - ディレクトリを削除する</span></li>
   </ul>
  </p>
 </div>


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