cvs: phpdoc-es /reference/apache/functions apache-getenv.xml

From: Date: Fri, 01 Jul 2005 15:26:16 +0000
Subject: cvs: phpdoc-es /reference/apache/functions apache-getenv.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-989@lists.php.net to get a copy of this message
javi Fri Jul 1 11:26:16 2005 EDT Modified files: /phpdoc-es/reference/apache/functions apache-getenv.xml Log: Actualizado por completo http://cvs.php.net/diff.php/phpdoc-es/reference/apache/functions/apache-getenv.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/apache/functions/apache-getenv.xml diff -u phpdoc-es/reference/apache/functions/apache-getenv.xml:1.1 phpdoc-es/reference/apache/functions/apache-getenv.xml:1.2 --- phpdoc-es/reference/apache/functions/apache-getenv.xml:1.1 Mon Feb 23 13:11:47 2004 +++ phpdoc-es/reference/apache/functions/apache-getenv.xml Fri Jul 1 11:26:16 2005 @@ -1,23 +1,95 @@ -<?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 maintainer:baoengb status:ready --> - <refentry id="function.apache-getenv"> - <refnamediv> - <refname>apache_getenv</refname> - <refpurpose> - Obtiene una variable subprocess_env de Apache - </refpurpose> - </refnamediv> - <refsect1> - <title>Descripci&oacute;n</title> - <methodsynopsis> - <type>cadena</type><methodname>apache_getenv</methodname> - <methodparam><type>cadena</type><parameter>variable</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>walk_to_top</parameter></methodparam> - </methodsynopsis> - &warn.undocumented.func; - </refsect1> - </refentry> +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: javi Status: ready --> +<refentry id="function.apache-getenv"> + <refnamediv> + <refname>apache_getenv</refname> + <refpurpose>Obtiene una variable del entorno subprocess_env de Apache</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>apache_getenv</methodname> + <methodparam><type>string</type><parameter>variable</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>obtener_la_superior</parameter></methodparam> + </methodsynopsis> + <para> + Obtiene una variable del entorno de Apache especificada en el par&aacute;metro <parameter>variable</parameter>. + </para> + <para> + La funci&oacute;n requiere el uso de Apache 2, ya que de otra forma no est&aacute; definida. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>variable</parameter></term> + <listitem> + <para> + La variable del entorno de Apache + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>obtener_la_superior</parameter></term> + <listitem> + <para> + Indica si se tiene que obtener la variable superior (de m&aacute;s alto nivel) disponible en todos los niveles de Apache. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Si tiene &eacute;xito devuelve el valor de la variable del entorno de Apache, si falla devuelve &false;. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Ejemplo de <function>apache_getenv</function></title> + <para> + Ejemplo de como obtener el valor de la variable <varname>SERVER_ADDR</varname>. del entorno de ejecuci&oacute;n de Apache. + </para> + <programlisting role="php"> +<![CDATA[ +<?php +$valor = apache_getenv("SERVER_ADDR"); +echo $valor; +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +42.24.42.240 +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>apache_sentenv</function></member> + <member><function>getenv</function></member> + <member><link linkend="language.variables.superglobals">Superglobals</link></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:

« previous php.doc.es (#989) next »