<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.stream.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.stream-context-create.php',
    1 => 'stream_context_create',
    2 => 'Bir akım bağlamı oluşturur',
  ),
  'up' => 
  array (
    0 => 'ref.stream.php',
    1 => 'Akım İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.stream-bucket-prepend.php',
    1 => 'stream_bucket_prepend',
  ),
  'next' => 
  array (
    0 => 'function.stream-context-get-default.php',
    1 => 'stream_context_get_default',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/stream/functions/stream-context-create.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.stream-context-create" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stream_context_create</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">stream_context_create</span> &mdash; <span class="dc-title">Bir akım bağlamı oluşturur</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.stream-context-create-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>stream_context_create</strong></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.array.php" class="type array">array</a></span></span> <code class="parameter">$seçenekler</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></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.array.php" class="type array">array</a></span></span> <code class="parameter">$bağımsız_değişkenler</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span></div>

  <p class="para rdfs-comment">
   Belirtilen <code class="parameter">seçenekler</code> ile bir akım bağlamı oluşturup
   bağlam özkaynağını döndürür.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.stream-context-create-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">seçenekler</code></dt>
     <dd>
      <p class="para">
        <code class="parameter">seçenekler</code> bağımsız değişkeni, ya <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> ya da üyeleri
        <code class="literal">$seçenekler[&#039;sarmalayıcı&#039;][&#039;seçenek&#039;] = $değer</code>
        olan bir ilişkisel dizi olmalıdır.
        Kullanılabilen sarmalayıcılar ve seçeneklerinin listesi <a href="context.php" class="link">bağlam seçenekleri</a>nde bulunabilir.
      </p>
      <p class="para">
       <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> öntanımlıdır.
      </p>
     </dd>
    
    
     <dt><code class="parameter">bağımsız_değişkenler</code></dt>
     <dd>
      <p class="para">
       Ya <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> ya da üyeleri <code class="literal">$bağımsız değişkenler[&#039;bağımsız_değişken_adı&#039;] =
       &quot;değer&quot;;</code> olan bir ilişkisel dizi olmalıdır. Standart akım
       bağımsız değişkenlerinin listesi için  <a href="context.params.php" class="xref">Bağlam bağımsız değişkenleri</a>
       bölümüne bakınız.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stream-context-create-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Akım bağlamı özkaynağı.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.stream-context-create-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">seçenekler</code> ve
       <code class="parameter">bağımsız_değişkenler</code> artık <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> olabiliyor.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.stream-context-create-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 - <span class="function"><strong>stream_context_create()</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 />$opts </span><span style="color: #007700">= [<br />  </span><span style="color: #DD0000">'http' </span><span style="color: #007700">=&gt; [<br />    </span><span style="color: #DD0000">'method' </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"GET"</span><span style="color: #007700">,<br />    </span><span style="color: #FF8000">// Başlıkları ayırmak için \n kullan<br />    </span><span style="color: #DD0000">'header' </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"Accept-language: en\nCookie: foo=bar"</span><span style="color: #007700">,<br />  ]<br />];<br /><br /></span><span style="color: #0000BB">$context </span><span style="color: #007700">= </span><span style="color: #0000BB">stream_context_create</span><span style="color: #007700">(</span><span style="color: #0000BB">$opts</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/* Yukarıdaki başlıklarla www.example.com'a bir HTTP isteği gönderelim */<br /></span><span style="color: #0000BB">$fp </span><span style="color: #007700">= </span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #DD0000">'http://www.example.com'</span><span style="color: #007700">, </span><span style="color: #DD0000">'r'</span><span style="color: #007700">, </span><span style="color: #0000BB">false</span><span style="color: #007700">, </span><span style="color: #0000BB">$context</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fpassthru</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fclose</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.stream-context-create-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.stream-context-set-option.php" class="function" rel="rdfs-seeAlso">stream_context_set_option()</a> - Bir akım/sarmalayıcı/bağlam i&ccedil;in bir se&ccedil;enek tanımlar</span></li>
   <li><a href="wrappers.php" class="xref">Desteklenen Protokoller ve Sarmalayıcılar</a></li>
   <li><a href="context.php" class="xref">Bağlam se&ccedil;enekleri ve bağımsız değişkenleri</a></li>
  </ul>
 </div>

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