<!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>Returns true if the tar/zip archive can be modified</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="phardata.extractto.html">PharData::extractTo</a></div> <div class="next" style="text-align: right; float: right;"><a href="phardata.offsetset.html">PharData::offsetSet</a></div> <div class="up"><a href="class.phardata.html">PharData</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="phardata.iswritable" class="refentry"> <div class="refnamediv"> <h1 class="refname">PharData::isWritable</h1> <p class="verinfo">(PHP >= 5.3.0, PECL phar >= 2.0.0)</p><p class="refpurpose"><span class="refname">PharData::isWritable</span> — <span class="dc-title">Returns true if the tar/zip archive can be modified</span></p> </div> <div class="refsect1 description" id="refsect1-phardata.iswritable-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>PharData::isWritable</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> This method returns <strong><code>TRUE</code></strong> if the tar/zip archive on disk is not read-only. Unlike <span class="function"><a href="phar.iswritable.html" class="function">Phar::isWritable()</a></span>, data-only tar/zip archives can be modified even if <em>phar.readonly</em> is set to <em>1</em>. </p> </div> <div class="refsect1 parameters" id="refsect1-phardata.iswritable-parameters"> <h3 class="title">Parameters</h3> <p class="para"> No parameters. </p> </div> <div class="refsect1 returnvalues" id="refsect1-phardata.iswritable-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> if the tar/zip archive can be modified </p> </div> <div class="refsect1 seealso" id="refsect1-phardata.iswritable-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="phar.canwrite.html" class="function" rel="rdfs-seeAlso">Phar::canWrite()</a> - Returns whether phar extension supports writing and creating phars</span></li> <li class="member"> <span class="function"><a href="phar.iswritable.html" class="function" rel="rdfs-seeAlso">Phar::isWritable()</a> - Returns true if the phar archive can be modified</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="phardata.extractto.html">PharData::extractTo</a></div> <div class="next" style="text-align: right; float: right;"><a href="phardata.offsetset.html">PharData::offsetSet</a></div> <div class="up"><a href="class.phardata.html">PharData</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>