1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 15:22:23 +01:00
Files
archived-doc-tr/reference/info/functions/set-include-path.xml
2021-03-21 12:30:12 +03:00

118 lines
3.1 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 0c9c2dd669fe9395eaa73d487fbd160f9057429a Maintainer: nilgun Status: ready -->
<refentry xml:id="function.set-include-path" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>set_include_path</refname>
<refpurpose>include_path yönergesinin çalışma anı değerini belirler
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>set_include_path</methodname>
<methodparam><type>string</type><parameter>yeni_değer</parameter></methodparam>
</methodsynopsis>
<para>
<link linkend="ini.include-path">include_path</link> yönergesinin, betiğin
çalışma süresince geçerli olacak değerini belirler.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>yeni_değer</parameter></term>
<listitem>
<para>
<link linkend="ini.include-path">include_path</link> yönergesinin yeni
değeri.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Başarısızlık durumunda &false;, aksi takdirde
<link linkend="ini.include-path">include_path</link> yönergesinin eski
değeriyle döner.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>- <function>set_include_path</function> örneği</title>
<programlisting role="php">
<![CDATA[
<?php
set_include_path('/inc');
// veya ini_set() kullanarak
ini_set('include_path', '/usr/lib/pear');
?>
]]>
</programlisting>
</example>
<example>
<title>- İçerilecek dosyaların aranacağı yollara bir yenisini eklemek
</title>
<para>
<constant>PATH_SEPARATOR</constant> sabitini kullanarak bu yolları
işletim sisteminden bağımsız olarak çoğaltmak mümkündür.
</para>
<para>
Bu örnekte, <literal>include_path</literal> yönergesinde belirtilen dosya
yollarına <filename>/usr/lib/pear</filename> dizinini ekleyeceğiz.
</para>
<programlisting role="php">
<![CDATA[
<?php
$path = '/usr/lib/pear';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>
]]>
</programlisting>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><function>ini_set</function></member>
<member><function>get_include_path</function></member>
<member><function>restore_include_path</function></member>
<member><function>include</function></member>
</simplelist>
</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
-->