1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-30 11:02:18 +02:00
Files
archived-doc-ja/reference/apache/functions/apache-setenv.xml
Hideyuki Shimooka 90ad6cfec8 translation updated
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@189117 c90b9560-bf6c-de11-be94-00142212c4b1
2005-06-23 18:14:46 +00:00

130 lines
3.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.8 $ -->
<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: shimooka -->
<refentry id='function.apache-setenv'>
<refnamediv>
<refname>apache_setenv</refname>
<refpurpose>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></methodparam>
</methodsynopsis>
<para>
<function>apache_setenv</function><parameter>variable</parameter>
で指定された Apache 環境変数の値を設定します。
</para>
<note>
<para>
Apache 環境変数を設定しても、対応する
<link linkend="reserved.variables.server">$_SERVER</link>
の値は変更されません。
</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", "Example Value");
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
<function>apache_setenv</function> は、分割されたページや PHP
スクリプトによって取り込まれた Server Side Includes (.shtml)
に渡すための変数を設定する場合、
<function>apache_getenv</function> と対にして使用することができます。
</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:"../../../../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
-->