<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>PHP Archive</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="wrappers.glob.html">glob://</a></div> <div class="next" style="text-align: right; float: right;"><a href="wrappers.ssh2.html">ssh2://</a></div> <div class="up"><a href="wrappers.html">Supported Protocols and Wrappers</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="wrappers.phar" class="refentry"> <div class="refnamediv"> <h1 class="refname">phar://</h1> <p class="refpurpose"><span class="refname">phar://</span> — <span class="dc-title">PHP Archive</span></p> </div> <div class="refsect1 description" id="refsect1-wrappers.phar-description"> <h3 class="title">Description</h3> <p class="simpara"> The <var class="filename">phar://</var> stream wrapper is available since PHP 5.3.0. See <a href="phar.using.stream.html" class="link">Phar stream wrapper</a> for detailed description. </p> </div> <div class="refsect1 usage" id="refsect1-wrappers.phar-usage"> <h3 class="title">Usage</h3> <ul class="itemizedlist"> <li class="listitem"><span class="simpara"><var class="filename">phar://</var></span></li> </ul> </div> <div class="refsect1 options" id="refsect1-wrappers.phar-options"> <h3 class="title">Options</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.html#ini.allow-url-fopen" class="link">allow_url_fopen</a></td> <td>No</td> </tr> <tr> <td>Restricted by <a href="filesystem.configuration.html#ini.allow-url-include" class="link">allow_url_include</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>No</td> </tr> <tr> <td>Allows Simultaneous Reading and Writing</td> <td>Yes</td> </tr> <tr> <td>Supports <span class="function"><a href="function.stat.html" class="function">stat()</a></span></td> <td>Yes</td> </tr> <tr> <td>Supports <span class="function"><a href="function.unlink.html" class="function">unlink()</a></span></td> <td>Yes</td> </tr> <tr> <td>Supports <span class="function"><a href="function.rename.html" class="function">rename()</a></span></td> <td>Yes</td> </tr> <tr> <td>Supports <span class="function"><a href="function.mkdir.html" class="function">mkdir()</a></span></td> <td>Yes</td> </tr> <tr> <td>Supports <span class="function"><a href="function.rmdir.html" class="function">rmdir()</a></span></td> <td>Yes</td> </tr> </tbody> </table> </p> </div> <div class="refsect1 seealso" id="refsect1-wrappers.phar-seealso"> <h3 class="title">See Also</h3> <ul class="simplelist"> <li class="member"><a href="context.phar.html" class="xref">Phar context options</a></li> </ul> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="wrappers.glob.html">glob://</a></div> <div class="next" style="text-align: right; float: right;"><a href="wrappers.ssh2.html">ssh2://</a></div> <div class="up"><a href="wrappers.html">Supported Protocols and Wrappers</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>