mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-29 20:32:10 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@171852 c90b9560-bf6c-de11-be94-00142212c4b1
71 lines
2.2 KiB
XML
71 lines
2.2 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.6 $ -->
|
|
<!-- EN-Revision: 1.4 Maintainer: didou Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry id="function.apache-setenv">
|
|
<refnamediv>
|
|
<refname>apache_setenv</refname>
|
|
<refpurpose>Modifie une variable de <literal>subprocess_env</literal> Apache</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>int</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> définie la valeur de la variable d'environnement
|
|
Apache spécifiée par le paramètre <parameter>variable</parameter>.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Lors de la définition d'une variable d'environnement Apache, la variable
|
|
<literal>$_SERVER</literal> correspondante n'est pas modifiée.
|
|
</para>
|
|
</note>
|
|
<example>
|
|
<title>Exemple avec <function>apache_setenv</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
apache_setenv("EXAMPLE_VAR", "Example Value");
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
<para>
|
|
<function>apache_setenv</function> peut être utilisé conjointement à
|
|
<function>apache_getenv</function> à travers plusieurs pages ou pour définir
|
|
des variables à passer aux includes coté serveur (.shtml) qui ont été incluses dans
|
|
les scripts &php;.
|
|
</para>
|
|
<para>
|
|
Voir aussi
|
|
<function>apache_getenv</function>.
|
|
</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
|
|
-->
|