<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.zlib.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.gzgets.php',
    1 => 'gzgets',
    2 => 'Gzipli dosya tanıtıcısından bir satır d&ouml;nd&uuml;r&uuml;r',
  ),
  'up' => 
  array (
    0 => 'ref.zlib.php',
    1 => 'Zlib İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.gzgetc.php',
    1 => 'gzgetc',
  ),
  'next' => 
  array (
    0 => 'function.gzgetss.php',
    1 => 'gzgetss',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/zlib/functions/gzgets.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.gzgets" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">gzgets</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">gzgets</span> &mdash; <span class="dc-title">Gzipli dosya tanıtıcısından bir satır döndürür</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.gzgets-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>gzgets</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$dt</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span> <code class="parameter">$uzunluk</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Belirtilen dosya tanıtıcısında mevcut konumdan itibaren en fazla
   (sıkıştırılmamış) <code class="parameter">uzunluk</code> - 1 bayt okur.  Okuma
   işlemi <code class="parameter">uzunluk</code> - 1 baytta, ilk satırsonu
   karakterinde veya dosya sonuna gelindiğinde (hangisi önce olursa) durur.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.gzgets-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">dt</code></dt>
     <dd>
      <p class="para">
       Gzipli dosya tanıtıcısı. <span class="function"><a href="function.gzopen.php" class="function">gzopen()</a></span> tarafından açılmış
       bir dosyayı gösteren geçerli bir tanıtıcı olmalıdır.
      </p>
     </dd>
    
    
     <dt><code class="parameter">uzunluk</code></dt>
     <dd>
      <p class="para">
       Okunacak verinin uzunluğu.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.gzgets-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Bir hata oluşursa <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> aksi takdirde sıkıştırılmamış dizgeyi döndürür.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.gzgets-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">uzunluk</code> artık <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> olabiliyor;
       evvelce, <code class="literal">1024</code> öntanımlıydı.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.gzgets-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 - <span class="function"><strong>gzgets()</strong></span> örneği</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$dt </span><span style="color: #007700">= </span><span style="color: #0000BB">gzopen</span><span style="color: #007700">(</span><span style="color: #DD0000">'birdosya.gz'</span><span style="color: #007700">, </span><span style="color: #DD0000">'r'</span><span style="color: #007700">);<br />while (!</span><span style="color: #0000BB">gzeof</span><span style="color: #007700">(</span><span style="color: #0000BB">$dt</span><span style="color: #007700">)) {<br />   </span><span style="color: #0000BB">$tampon </span><span style="color: #007700">= </span><span style="color: #0000BB">gzgets</span><span style="color: #007700">(</span><span style="color: #0000BB">$dt</span><span style="color: #007700">, </span><span style="color: #0000BB">4096</span><span style="color: #007700">);<br />   echo </span><span style="color: #0000BB">$tampon</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">gzclose</span><span style="color: #007700">(</span><span style="color: #0000BB">$dt</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

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


 <div class="refsect1 seealso" id="refsect1-function.gzgets-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.gzopen.php" class="function" rel="rdfs-seeAlso">gzopen()</a> - Bir gzipli dosya a&ccedil;ar</span></li>
    <li><span class="function"><a href="function.gzgetc.php" class="function" rel="rdfs-seeAlso">gzgetc()</a> - Gzipli dosya g&ouml;stericisindeki karakteri d&ouml;nd&uuml;r&uuml;r</span></li>
    <li><span class="function"><a href="function.gzwrite.php" class="function" rel="rdfs-seeAlso">gzwrite()</a> - Bir dizgeyi bir gzipli dosyaya ikil kipte yazar</span></li>
   </ul>
  </p>
 </div>

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