1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-23 23:02:09 +01:00
Files
2021-03-29 20:25:53 +03:00

141 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 xmlns="http://docbook.org/ns/docbook" xml:id="function.chown">
<refnamediv>
<refname>chown</refname>
<refpurpose>Dosyanın sahibini değiştirir</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>chown</methodname>
<methodparam><type>string</type><parameter>dosyaismi</parameter></methodparam>
<methodparam><type class="union"><type>string</type><type>int</type></type><parameter>kullanıcı</parameter></methodparam>
</methodsynopsis>
<para>
<parameter>dosyaismi</parameter> ile belirtilen dosyanın sahibini
<parameter>kullanıcı</parameter> yapmaya çalışır. Bu değişikliği sadece
root yapabilir.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>dosyaismi</parameter></term>
<listitem>
<para>
Dosya yolu.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>kullanıcı</parameter></term>
<listitem>
<para>
Kullanıcı ismi veya numarası.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- <function>chown</function> örneği</title>
<programlisting role="php">
<![CDATA[
<?php
// Kullanılacak dosya ve kullanıcı ismi
$dosya_ismi= "foo.php";
$yol = "/home/sites/php.net/public_html/sandbox/" . $dosya_ismi ;
$kull_ismi = "root";
// Kullanıcıyı değiştirelim
chown($yol, $kull_ismi);
// sonucu sınayalım
$durum = stat($yol);
print_r(posix_getpwuid($stat['uid']));
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
Array
(
[name] => root
[passwd] => x
[uid] => 0
[gid] => 0
[gecos] => root
[dir] => /root
[shell] => /bin/bash
)
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&note.no-remote;
<note>
<simpara>
Windows'ta, bu işlev normal bir dosyaya uygulandığında sessizce
başarısız olur.
</simpara>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>chmod</function></member>
<member><function>chgrp</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
-->