svn: /phpdoc/ru/trunk/reference/filesystem/functions/ fileperms.xml
| From: | Shein Alexey | Date: | Sun, 13 Mar 2011 18:23:14 +0000 |
| Subject: | svn: /phpdoc/ru/trunk/reference/filesystem/functions/ fileperms.xml | ||
| Groups: | php.doc.ru | ||
| Request: | Send a blank email to doc-ru+get-1525@lists.php.net to get a copy of this message | ||
shein Sun, 13 Mar 2011 18:23:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309186
Log:
Updated translation.
Changed paths:
U phpdoc/ru/trunk/reference/filesystem/functions/fileperms.xml
Modified: phpdoc/ru/trunk/reference/filesystem/functions/fileperms.xml
===================================================================
--- phpdoc/ru/trunk/reference/filesystem/functions/fileperms.xml 2011-03-13 18:18:37 UTC (rev
309185)
+++ phpdoc/ru/trunk/reference/filesystem/functions/fileperms.xml 2011-03-13 18:23:14 UTC (rev
309186)
@@ -1,45 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: n/a Maintainer: tronic Status: ready -->
+<!-- EN-Revision: 306338 Maintainer: shein Status: ready -->
+<!-- Reviewed: no -->
<!-- $Revision$ -->
-<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
- <refentry xml:id="function.fileperms" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>fileperms</refname>
- <refpurpose>Получить информацию о правах на
файл</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Описание</title>
- <methodsynopsis>
- <type>int</type><methodname>fileperms</methodname>
-
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
- </methodsynopsis>
- <para>
- Функция возвращает информацию о правах на
указанный файл или
- &false; в случае возникновения ошибки.
- </para>
- ¬e.clearstatcache;
- &tip.fopen-wrapper.stat;
- <example>
- <title>Display permissions as an octal value</title>
- <programlisting role="php">
+<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.fileperms">
+ <refnamediv>
+ <refname>fileperms</refname>
+ <refpurpose>Возвращает информацию о правах на
файл</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>fileperms</methodname>
+
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Возвращает информацию о правах доступа на файл.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>filename</parameter></term>
+ <listitem>
+ <para>
+ Путь к файлу.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Функция возвращает информацию о правах на указанный
файл,
+ &return.falseforfailure;.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Отображение прав доступа в виде
восьмеричного числа</title>
+ <programlisting role="php">
<![CDATA[
<?php
echo substr(sprintf('%o', fileperms('/tmp')), -4);
echo substr(sprintf('%o', fileperms('/etc/passwd')), -4);
?>
]]>
- </programlisting>
- <para>This would produce the output:</para>
- <screen>
+ </programlisting>
+ &example.outputs;
+ <screen>
<![CDATA[
1777
0644
]]>
- </screen>
- </example>
- <example>
- <title>Display full permissions</title>
- <programlisting role="php">
+ </screen>
+ </example>
+ <example>
+ <title>Отображение полных прав доступа</title>
+ <programlisting role="php">
<![CDATA[
<?php
$perms = fileperms('/etc/passwd');
@@ -94,21 +121,41 @@
echo $info;
?>
]]>
- </programlisting>
- <para>Результат:</para>
- <screen>
+ </programlisting>
+ &example.outputs;
+ <screen>
<![CDATA[
--r--r--r--
+-rw-r--r--
]]>
- </screen>
- </example>
- <simpara>
- См.также описания функций <function>is_readable</function>
- и <function>stat</function>
- </simpara>
- </refsect1>
- </refentry>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+ <refsect1 role="errors">
+ &reftitle.errors;
+ &fs.emits.warning.on.failure;
+ </refsect1>
+
+ <refsect1 role="notes">
+ &reftitle.notes;
+ ¬e.clearstatcache;
+ &tip.fopen-wrapper.stat;
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>chmod</function></member>
+ <member><function>is_readable</function></member>
+ <member><function>stat</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
@@ -120,7 +167,7 @@
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
-sgml-default-dtd-file:"../~/.phpdoc/manual.ced"
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil