<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.cli-set-process-title.php',
    1 => 'cli_set_process_title',
    2 => 'Ge&ccedil;erli s&uuml;rece başlık tanımlar',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP Se&ccedil;enek/Bilgi İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.cli-get-process-title.php',
    1 => 'cli_get_process_title',
  ),
  'next' => 
  array (
    0 => 'function.dl.php',
    1 => 'dl',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/info/functions/cli-set-process-title.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.cli-set-process-title" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">cli_set_process_title</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">cli_set_process_title</span> &mdash; <span class="dc-title">Geçerli sürece başlık tanımlar</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.cli-set-process-title-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>cli_set_process_title</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$başlık</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>


  <p class="para rdfs-comment">
   <strong class="command">top</strong> ve <strong class="command">ps</strong> gibi araçlarda görünen
   süreç başlığını tanımlar. Bu işlev sadece
   <a href="features.commandline.php" class="link">CLI</a> kipinde kullanılabilir.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.cli-set-process-title-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">başlık</code></dt>
    <dd>
     <p class="para">
      Yeni başlık.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.cli-set-process-title-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 errors" id="refsect1-function.cli-set-process-title-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>

  <p class="para">
   İşletim sistemi desteklenmiyorsa bir <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>
   üretilir.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.cli-set-process-title-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 - <span class="function"><strong>cli_set_process_title()</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 />$title </span><span style="color: #007700">= </span><span style="color: #DD0000">"Harika PHP Betiğim"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$pid </span><span style="color: #007700">= </span><span style="color: #0000BB">getmypid</span><span style="color: #007700">(); </span><span style="color: #FF8000">// süreç başlığını ps çıktısında bulmak için<br /><br /></span><span style="color: #007700">if (!</span><span style="color: #0000BB">cli_set_process_title</span><span style="color: #007700">(</span><span style="color: #0000BB">$title</span><span style="color: #007700">)) {<br />    echo </span><span style="color: #DD0000">"</span><span style="color: #0000BB">$pid</span><span style="color: #DD0000"> için süreç başlığı atanamadı...\n"</span><span style="color: #007700">;<br />    exit(</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />} else {<br />    echo </span><span style="color: #DD0000">"</span><span style="color: #0000BB">$pid</span><span style="color: #DD0000"> kimlikli süreç için başlık olarak '</span><span style="color: #0000BB">$title</span><span style="color: #DD0000">' tanımlandı!\n"</span><span style="color: #007700">;<br />    </span><span style="color: #0000BB">sleep</span><span style="color: #007700">(</span><span style="color: #0000BB">5</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Betik çıktısı:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">6454 kimlikli süreç için başlık olarak &#039;Harika PHP Betiğim&#039; tanımlandı!</pre>
</div>
    </div>
    <div class="example-contents"><p>ps çıktısı:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">6454 pts/8    S+     0:00 Harika PHP Betiğim</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.cli-set-process-title-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.cli-get-process-title.php" class="function" rel="rdfs-seeAlso">cli_get_process_title()</a> - Ge&ccedil;erli s&uuml;recin başlığını d&ouml;nd&uuml;r&uuml;r</span></li>
   </ul>
  </p>
 </div>

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