1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-24 07:42:22 +01:00
Files
archived-doc-ru/reference/apache/functions/apache-setenv.xml
Sergey Panteleev daef8df962 Обнуление тега Reviewed (#364)
[skip-lint]
[skip-spellcheck]
2021-11-16 13:03:53 +03:00

127 lines
3.8 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"?>
<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: shein Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.apache-setenv" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>apache_setenv</refname>
<refpurpose>Устанавливает переменную subprocess_env Apache</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>apache_setenv</methodname>
<methodparam><type>string</type><parameter>variable</parameter></methodparam>
<methodparam><type>string</type><parameter>value</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>walk_to_top</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
<para>
<function>apache_setenv</function> устанавливает значение
переменной окружения Apache, определённой как
<parameter>variable</parameter>.
</para>
<note>
<para>
При установке переменной окружения Apache, соответствующая ей переменная
<varname>$_SERVER</varname> не изменяется.
</para>
</note>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>variable</parameter></term>
<listitem>
<para>
Переменная окружения, которую требуется установить.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>value</parameter></term>
<listitem>
<para>
Новое значение переменной <parameter>variable</parameter>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>walk_to_top</parameter></term>
<listitem>
<para>
Делать ли доступной переменную для всех уровней Apache.
</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>apache_setenv</function> для установки переменной окружения Apache.</title>
<programlisting role="php">
<![CDATA[
<?php
apache_setenv("EXAMPLE_VAR", "Какое-либо значение");
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
<function>apache_setenv</function> можно использовать вместе с
<function>apache_getenv</function> на разных страницах или для определения переменных,
которые требуется передать включениям на стороне сервера SSI (.shtml), которые, в свою очередь,
были включены в PHP-скрипты.
</para>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>apache_getenv</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
-->