<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.curl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.curl-errno.php',
    1 => 'curl_errno',
    2 => 'Belirtilen oturumdaki son hatanın kodunu d&ouml;nd&uuml;r&uuml;r',
  ),
  'up' => 
  array (
    0 => 'ref.curl.php',
    1 => 'cURL İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.curl-copy-handle.php',
    1 => 'curl_copy_handle',
  ),
  'next' => 
  array (
    0 => 'function.curl-error.php',
    1 => 'curl_error',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/curl/functions/curl-errno.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.curl-errno" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">curl_errno</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.3, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">curl_errno</span> &mdash; <span class="dc-title">Belirtilen oturumdaki son hatanın kodunu döndürür</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.curl-errno-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>curl_errno</strong></span>(<span class="methodparam"><span class="type"><a href="class.curlhandle.php" class="type CurlHandle">CurlHandle</a></span> <code class="parameter">$tanıtıcı</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Belirtilen oturumdaki son hatanın numarasını döndürür.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.curl-errno-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
<dt><code class="parameter">tanıtıcı</code>
</dt><dd><p class="para"><span class="function"><a href="function.curl-init.php" class="function">curl_init()</a></span> işlevinden dönen bir
cURL tanıtıcısı.</p></dd>
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.curl-errno-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Bir hata yoksa 0, varsa hatanın kodunu döndürür.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.curl-errno-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">tanıtıcı</code> için artık bir
<span class="classname"><a href="class.curlhandle.php" class="classname">CurlHandle</a></span> örneği bekleniyor; evvelce,
<span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> türünde bir değer beklenirdi.</td></tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.curl-errno-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 - <span class="function"><strong>curl_errno()</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 /></span><span style="color: #FF8000">// Olmayan bir yer için bir cURL tanıtıcısı oluşturalım<br /></span><span style="color: #0000BB">$ct </span><span style="color: #007700">= </span><span style="color: #0000BB">curl_init</span><span style="color: #007700">(</span><span style="color: #DD0000">'http://404.php.net/'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">curl_setopt</span><span style="color: #007700">(</span><span style="color: #0000BB">$ct</span><span style="color: #007700">, </span><span style="color: #0000BB">CURLOPT_RETURNTRANSFER</span><span style="color: #007700">, </span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /><br />if(</span><span style="color: #0000BB">curl_exec</span><span style="color: #007700">(</span><span style="color: #0000BB">$ct</span><span style="color: #007700">) === </span><span style="color: #0000BB">false</span><span style="color: #007700">)<br />{<br />    echo </span><span style="color: #DD0000">'Curl hatası: ' </span><span style="color: #007700">. </span><span style="color: #0000BB">curl_error</span><span style="color: #007700">(</span><span style="color: #0000BB">$ct</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">// Tanıtıcıyı kapatalım<br /></span><span style="color: #0000BB">curl_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$ct</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.curl-errno-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.curl-error.php" class="function" rel="rdfs-seeAlso">curl_error()</a> - Belirtilen oturumdaki son hatayı i&ccedil;eren bir dizge d&ouml;nd&uuml;r&uuml;r</span></li>
    <li><a href="http://curl.haxx.se/libcurl/c/libcurl-errors.html" class="link external">&raquo;&nbsp;Curl hata kodları
    </a></li>
   </ul>
  </p>
 </div>


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