<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.ziparchive.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'ziparchive.setpassword.php',
    1 => 'ZipArchive::setPassword',
    2 => 'Set the password for the active archive',
  ),
  'up' => 
  array (
    0 => 'class.ziparchive.php',
    1 => 'ZipArchive',
  ),
  'prev' => 
  array (
    0 => 'ziparchive.setmtimename.php',
    1 => 'ZipArchive::setMtimeName',
  ),
  'next' => 
  array (
    0 => 'ziparchive.statindex.php',
    1 => 'ZipArchive::statIndex',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/zip/ziparchive/setpassword.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ziparchive.setpassword" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ZipArchive::setPassword</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.6.0, PHP 7, PHP 8, PECL zip &gt;= 1.12.4)</p><p class="refpurpose"><span class="refname">ZipArchive::setPassword</span> &mdash; <span class="dc-title">Set the password for the active archive</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-ziparchive.setpassword-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ZipArchive::setPassword</strong></span>(<span class="methodparam"><span class="attribute"><a href="class.sensitiveparameter.php">#[\SensitiveParameter]</a> </span><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$password</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Sets the password for the active archive.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-ziparchive.setpassword-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">password</code></dt>
    <dd>
     <p class="para">
      The password to be used for the archive.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-ziparchive.setpassword-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Başarı durumunda <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
 </div>

 
 <div class="refsect1 notes" id="refsect1-ziparchive.setpassword-notes">
  <h3 class="title">Notlar</h3>
  <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
   <p class="para">
    As of PHP 7.2.0 and libzip 1.2.0 the password is used to decompress the archive,
    and is also the default password for <span class="methodname"><a href="ziparchive.setencryptionname.php" class="methodname">ZipArchive::setEncryptionName()</a></span>
    and <span class="methodname"><a href="ziparchive.setencryptionindex.php" class="methodname">ZipArchive::setEncryptionIndex()</a></span>.
    Formerly, this function only set the password to be used to decompress the archive;
    it did not turn a non-password-protected <span class="classname"><a href="class.ziparchive.php" class="classname">ZipArchive</a></span>
    into a password-protected <span class="classname"><a href="class.ziparchive.php" class="classname">ZipArchive</a></span>.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-ziparchive.setpassword-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="ziparchive.setencryptionindex.php" class="methodname" rel="rdfs-seeAlso">ZipArchive::setEncryptionIndex()</a> - Set the encryption method of an entry defined by its index</span></li>
    <li><span class="methodname"><a href="ziparchive.setencryptionname.php" class="methodname" rel="rdfs-seeAlso">ZipArchive::setEncryptionName()</a> - Set the encryption method of an entry defined by its name</span></li>
   </ul>
  </p>
 </div>


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