<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/wrappers.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'wrappers.file.php',
    1 => 'file://',
    2 => 'Accessing local filesystem',
  ),
  'up' => 
  array (
    0 => 'wrappers.php',
    1 => 'Підтримувані протоколи та обгортки',
  ),
  'prev' => 
  array (
    0 => 'wrappers.php',
    1 => 'Підтримувані протоколи та обгортки',
  ),
  'next' => 
  array (
    0 => 'wrappers.http.php',
    1 => 'http://',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'language/wrappers/file.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="wrappers.file" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">file://</h1>
  <p class="refpurpose"><span class="refname">file://</span> &mdash; <span class="dc-title">Accessing local filesystem</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-wrappers.file-description">
  <h3 class="title">Опис</h3>
  <p class="para">
   <code class="literal">file://</code> is the default wrapper used with PHP and
   represents the local filesystem.
   When a relative path is specified (a path which does not begin with
   <code class="literal">/</code>, <code class="literal">\</code>, <code class="literal">\\</code>, or a
   Windows drive letter) the path provided will be applied against the current
   working directory. In many cases this is the directory in which the script
   resides unless it has been changed. Using the <abbr title="Command Line Interpreter/Interface">CLI</abbr>
   <abbr title="Server Application Programming Interface">SAPI</abbr>, this defaults to the directory from which the
   script was called.
  </p>
  <p class="simpara">
   With some functions, such as <span class="function"><a href="function.fopen.php" class="function">fopen()</a></span> and
   <span class="function"><a href="function.file-get-contents.php" class="function">file_get_contents()</a></span>, <code class="literal">include_path</code>
   may be optionally searched for relative paths as well.
  </p>
 </div>


 <div class="refsect1 usage" id="refsect1-wrappers.file-usage"> 
  <h3 class="title">Використання</h3>
  <ul class="itemizedlist">
   <li class="listitem"><span class="simpara"><var class="filename">/path/to/file.ext</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">relative/path/to/file.ext</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">fileInCwd.ext</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">C:/path/to/winfile.ext</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">C:\path\to\winfile.ext</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">\\smbserver\share\path\to\winfile.ext</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">file:///path/to/file.ext</var></span></li>
  </ul>
 </div>
 

 <div class="refsect1 options" id="refsect1-wrappers.file-options">
  <h3 class="title">Опції</h3>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Wrapper Summary</strong></caption>
    
     <thead>
      <tr>
       <th>Attribute</th>
       <th>Supported</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>Restricted by <a href="filesystem.configuration.php#ini.allow-url-fopen" class="link">allow_url_fopen</a></td>
       <td>No</td>
      </tr>

      <tr>
       <td>Allows Reading</td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>Allows Writing</td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>Allows Appending</td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>Allows Simultaneous Reading and Writing</td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>Supports <span class="function"><a href="function.stat.php" class="function">stat()</a></span></td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>Supports <span class="function"><a href="function.unlink.php" class="function">unlink()</a></span></td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>Supports <span class="function"><a href="function.rename.php" class="function">rename()</a></span></td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>Supports <span class="function"><a href="function.mkdir.php" class="function">mkdir()</a></span></td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>Supports <span class="function"><a href="function.rmdir.php" class="function">rmdir()</a></span></td>
       <td>Yes</td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>
 

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