mirror of
https://github.com/php/doc-ru.git
synced 2026-04-26 08:48:12 +02:00
6d43fd64d7
[skip-spellcheck] [skip-lint]
95 lines
2.4 KiB
XML
95 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 0c9c2dd669fe9395eaa73d487fbd160f9057429a Maintainer: tmn Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xml:id="function.php-ini-loaded-file" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>php_ini_loaded_file</refname>
|
|
<refpurpose>
|
|
Получить путь к загруженному файлу php.ini
|
|
</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type class="union"><type>string</type><type>false</type></type><methodname>php_ini_loaded_file</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
Проверяет, загружен ли файл &php.ini;, и возвращает его путь.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
&no.function.parameters;
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Путь к загруженному файлу &php.ini; или &false;, если файл не загружен.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Пример использования <function>php_ini_loaded_file</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$inipath = php_ini_loaded_file();
|
|
|
|
if ($inipath) {
|
|
echo 'Загруженный php.ini: ' . $inipath;
|
|
} else {
|
|
echo 'Файл php.ini не загружен';
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
Loaded php.ini: /usr/local/php/php.ini
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>php_ini_scanned_files</function></member>
|
|
<member><function>phpinfo</function></member>
|
|
<member><link linkend="configuration.file">Конфигурационный файл</link></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
|
|
-->
|