mirror of
https://github.com/php/doc-tr.git
synced 2026-03-24 07:12:18 +01:00
115 lines
2.7 KiB
XML
115 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: nilgun Status: ready -->
|
||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.is-writeable">
|
||
<refnamediv>
|
||
<refname>is_writeable</refname>
|
||
<refpurpose>Dosya yazılabilir kipteyse bunu doğrular</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<type>bool</type><methodname>is_writable</methodname>
|
||
<methodparam><type>string</type><parameter>dosya</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
<parameter>dosya</parameter> mevcut ve yazılabilir ise &true; döndürür.
|
||
<parameter>dosya</parameter> olarak bir dizin belirtilirse dizinin
|
||
yazılabilirliğine bakılır.
|
||
</para>
|
||
<para>
|
||
PHP'nin dosyaya http sunucusunu çalıştıran kullanıcının kimliği
|
||
(çoğunlukla 'nobody') ile erişebileceği unutulmamalıdır.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<para>
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term><parameter>dosya</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Yazılabilirliği sınanacak dosya veya dizin.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
<para>
|
||
<parameter>dosya</parameter> mevcut ve yazılabilir ise &true; döner.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="errors">
|
||
&reftitle.errors;
|
||
&fs.emits.warning.on.failure;
|
||
</refsect1>
|
||
|
||
<refsect1 role="examples">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title>- <function>is_writable</function> örneği</title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
$dosya = 'test.txt';
|
||
if (is_writable($dosya)) {
|
||
echo 'Dosyaya yazılabilir';
|
||
} else {
|
||
echo 'Dosya yazılabilir kipte değil';
|
||
}
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
</example>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="notes">
|
||
&reftitle.notes;
|
||
|
||
¬e.clearstatcache;
|
||
&tip.fopen-wrapper.stat;
|
||
</refsect1>
|
||
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<para>
|
||
<simplelist>
|
||
<member><function>is_readable</function></member>
|
||
<member><function>file_exists</function></member>
|
||
<member><function>fwrite</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
|
||
-->
|