mirror of
https://github.com/php/doc-ja.git
synced 2026-03-24 07:02:08 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@344422 c90b9560-bf6c-de11-be94-00142212c4b1
130 lines
3.4 KiB
XML
130 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: hirokawa Status: ready -->
|
|
<!-- CREDITS: shimooka -->
|
|
<refentry xml:id='function.apache-setenv' xmlns="http://docbook.org/ns/docbook">
|
|
<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><initializer>&false;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>apache_setenv</function> は <parameter>variable</parameter>
|
|
で指定された Apache 環境変数の値を設定します。
|
|
</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", "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:"~/.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
|
|
-->
|