<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.phar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'phar.canwrite.php',
    1 => 'Phar::canWrite',
    2 => 'Returns whether phar extension supports writing and creating phars',
  ),
  'up' => 
  array (
    0 => 'class.phar.php',
    1 => 'Phar',
  ),
  'prev' => 
  array (
    0 => 'phar.cancompress.php',
    1 => 'Phar::canCompress',
  ),
  'next' => 
  array (
    0 => 'phar.compress.php',
    1 => 'Phar::compress',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/phar/Phar/canWrite.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="phar.canwrite" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Phar::canWrite</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL phar &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">Phar::canWrite</span> &mdash; <span class="dc-title">Returns whether phar extension supports writing and creating phars</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-phar.canwrite-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>Phar::canWrite</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>


  <p class="para rdfs-comment">
   This static method determines whether write access has been disabled in
   the system php.ini via the <a href="phar.configuration.php#ini.phar.readonly" class="link">phar.readonly</a>
   ini variable.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-phar.canwrite-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-phar.canwrite-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if write access is enabled, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if it is disabled.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-phar.canwrite-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 A <span class="function"><strong>Phar::canWrite()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">if (</span><span style="color: #0000BB">Phar</span><span style="color: #007700">::</span><span style="color: #0000BB">canWrite</span><span style="color: #007700">()) {<br />    </span><span style="color: #0000BB">file_put_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">'phar://myphar.phar/file.txt'</span><span style="color: #007700">, </span><span style="color: #DD0000">'hi there'</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-phar.canwrite-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><a href="phar.configuration.php#ini.phar.readonly" class="link">phar.readonly</a></li>
    <li><span class="function"><a href="phar.iswritable.php" class="function" rel="rdfs-seeAlso">Phar::isWritable()</a> - Returns true if the phar archive can be modified</span></li>
   </ul>
  </p>
 </div>



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