mirror of
https://github.com/php/doc-ru.git
synced 2025-07-30 12:57:40 +00:00
112 lines
3.1 KiB
XML
112 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- EN-Revision: 871a231f4a1caa5fb258ae53b1bb7d1fb2a0f949 Maintainer: shein Status: ready -->
|
||
<!-- Reviewed: no -->
|
||
<refentry xml:id="function.filegroup" xmlns="http://docbook.org/ns/docbook">
|
||
<refnamediv>
|
||
<refname>filegroup</refname>
|
||
<refpurpose>Получает идентификатор группы файла</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<type class="union"><type>int</type><type>false</type></type><methodname>filegroup</methodname>
|
||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
Возвращает идентификатор группы файла в виде числа.
|
||
Для получения имени группы в виде строки используйте функцию
|
||
<function>posix_getgrgid</function>.
|
||
</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>
|
||
Возвращает идентификатор группы файла или &false; в случае
|
||
ошибки. Идентификатор группы возвращается в виде числа, для
|
||
получения имени группы в виде строки используйте функцию
|
||
<function>posix_getgrgid</function>.
|
||
В случае возникновения ошибки возвращается &false;.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="errors">
|
||
&reftitle.errors;
|
||
<para>
|
||
В случае возникновения ошибки будет сгенерирована ошибка уровня
|
||
<constant>E_WARNING</constant>.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="examples">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title>Поиск группы файла</title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
$filename = 'index.php';
|
||
print_r(posix_getgrgid(filegroup($filename)));
|
||
?>
|
||
]]>
|
||
</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>fileowner</function></member>
|
||
<member><function>posix_getgrgid</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
|
||
-->
|