mirror of
https://github.com/php/doc-tr.git
synced 2026-03-24 15:22:23 +01:00
117 lines
3.1 KiB
XML
117 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- EN-Revision: 7973fd533364af4dd6282ca9e7bee2dffec39b1c Maintainer: nilgun Status: ready -->
|
||
<refentry xml:id="function.shell-exec" xmlns="http://docbook.org/ns/docbook">
|
||
<refnamediv>
|
||
<refname>shell_exec</refname>
|
||
<refpurpose>Komutu kabukta çalıştırır ve çıktısının tamamını bir dizge
|
||
olarak döndürür</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<type class="union"><type>string</type><type>false</type><type>null</type></type><methodname>shell_exec</methodname>
|
||
<methodparam><type>string</type><parameter>komut</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
Bu işlev <link linkend="language.operators.execution">çalıştırma
|
||
işleci</link> kullanmakla eşdeğerdir.
|
||
</para>
|
||
<note>
|
||
<para>
|
||
Windows'ta, ilgili boru metin kipinde açıldığı için ikil çıktı için
|
||
işlevin başarısız olmasına sebep olur. Böyle durumlarda bu işlev yerine
|
||
<function>popen</function> kullanabilirsiniz.
|
||
</para>
|
||
</note>
|
||
</refsect1>
|
||
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<para>
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term><parameter>komut</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Çalıştırılacak komut.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
<para>
|
||
Çalıştırılan komutun çıktısı bir dizge olarak döner. Boru
|
||
oluşturulamamışsa, komut çıktı üretmezse veya hata oluşmuşsa &null; döner.
|
||
</para>
|
||
<note>
|
||
<para>
|
||
Bu işlev, hem komutun çıktı üretmediği durumda hem de hata durumunda ayırt
|
||
etmeksizin &null; döndürür. Bu sebeple başarısızlık durumunu bu işlevle
|
||
saptamak mümkün değildir. Komutun çıkış durumuna erişmek gerekliyse bu
|
||
işlev yerine <function>exec</function> kullanılmalıdır.
|
||
</para>
|
||
</note>
|
||
</refsect1>
|
||
|
||
<refsect1 role="errors">
|
||
&reftitle.errors;
|
||
<para>
|
||
Boru oluşturulamamışsa <constant>E_WARNING</constant> seviyesinde
|
||
bir hata üretilir.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="examples">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title>- <function>shell_exec</function> örneği</title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
$çıktı = shell_exec('ls -lart');
|
||
echo "<pre>$çıktı</pre>";
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
</example>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<para>
|
||
<simplelist>
|
||
<member><function>exec</function></member>
|
||
<member><function>escapeshellcmd</function></member>
|
||
</simplelist>
|
||
</para>
|
||
</refsect1>
|
||
</refentry>
|
||
|
||
<!-- Keep this comment at the end of the file
|
||
Local variables:
|
||
mode: sgml
|
||
sgml-omittag:t
|
||
sgml-shorttag:t
|
||
sgml-minimize-attributes:nil
|
||
sgml-always-quote-attributes:t
|
||
sgml-indent-step:1
|
||
sgml-indent-data:t
|
||
indent-tabs-mode:nil
|
||
sgml-parent-document:nil
|
||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||
sgml-exposed-tags:nil
|
||
sgml-local-catalogs:nil
|
||
sgml-local-ecat-files:nil
|
||
End:
|
||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
vim: et tw=78 syn=sgml
|
||
vi: ts=1 sw=1
|
||
-->
|