Date: 09/13/00
- Next message: Thomas Schuermann: "[PHP-DOC] cvs: phpdoc /de/language types.xml"
- Previous message: Thomas Schuermann: "[PHP-DOC] cvs: phpdoc /de Translators"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
eschmid Wed Sep 13 11:29:13 2000 EDT
Modified files:
/phpdoc/es/functions errorfunc.xml funchand.xml info.xml misc.xml
Log:
Moved functions around and Jade is happy.
Index: phpdoc/es/functions/errorfunc.xml
diff -u phpdoc/es/functions/errorfunc.xml:1.1 phpdoc/es/functions/errorfunc.xml:1.2
--- phpdoc/es/functions/errorfunc.xml:1.1 Wed Sep 13 09:41:59 2000
+++ phpdoc/es/functions/errorfunc.xml Wed Sep 13 11:29:13 2000
@@ -25,241 +25,147 @@
<refentry id="function.error-log">
<refnamediv>
<refname>error_log</refname>
- <refpurpose>send an error message somewhere</refpurpose>
+ <refpurpose>envía un mensaje de error a algún lugar</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripción</title>
<funcsynopsis>
- <funcprototype>
- <funcdef>int <function>error_log</function></funcdef>
- <paramdef>string <parameter>message</parameter></paramdef>
- <paramdef>int <parameter>message_type</parameter></paramdef>
- <paramdef>string
- <parameter><optional>destination</optional></parameter>
- </paramdef>
- <paramdef>string
- <parameter><optional>extra_headers</optional></parameter>
- </paramdef>
- </funcprototype>
+ <funcdef>int <function>error_log</function></funcdef>
+ <paramdef>string <parameter>message</parameter></paramdef>
+ <paramdef>int <parameter>message_type</parameter></paramdef>
+ <paramdef>string <parameter><optional>destination</optional></parameter></paramdef>
+ <paramdef>string <parameter><optional>extra_headers</optional></parameter></paramdef>
</funcsynopsis>
<para>
- Sends an error message to the web server's error log, a
- <acronym>TCP</acronym> port or to a file. The first parameter,
- <parameter>message</parameter>, is the error message that should
- be logged. The second parameter,
- <parameter>message_type</parameter> says where the message should
- go:
+ Envía un mensaje de error al log de errores del servidor web, a
+ un puerto <acronym>TCP</acronym> o a un fichero. El primer parámetro,
+ <parameter>message</parameter> (mensaje), es el mensaje de error
+ que debe ser registrado. El segundo parámetro, <parameter>message_type</parameter>
+ (tipo de mensaje) indica el lugar al que debe dirigirse:
<table>
- <title><function>error_log</function> log types</title>
+ <title><function>error_log</function> tipos de log</title>
<tgroup cols="2">
<tbody>
- <row>
- <entry>0</entry>
- <entry>
- <parameter>message</parameter> is sent to PHP's system
- logger, using the Operating System's system logging
- mechanism or a file, depending on what the <link
- linkend="ini.error-log">error_log</link> configuration
- directive is set to.
- </entry>
- </row>
- <row>
- <entry>1</entry>
- <entry>
- <parameter>message</parameter> is sent by email to the
- address in the <parameter>destination</parameter> parameter.
- This is the only message type where the fourth parameter,
- <parameter>extra_headers</parameter> is used. This message
- type uses the same internal function as
- <function>Mail</function> does.
- </entry>
- </row>
- <row>
- <entry>2</entry>
- <entry>
- <parameter>message</parameter> is sent through the PHP
- debugging connection. This option is only available if
- <link linkend="enable-debugger">remote debugging has been
- enabled</link>. In this case, the
- <parameter>destination</parameter> parameter specifies the
- host name or IP address and optionally, port number, of the
- socket receiving the debug information.
- </entry>
- </row>
- <row>
- <entry>3</entry>
- <entry>
- <parameter>message</parameter> is appended to the file
- <parameter>destination</parameter>.
- </entry>
- </row>
+ <row>
+ <entry>0</entry>
+ <entry>
+ <parameter>message</parameter> es enviado al registro de sistema
+ de PHP, utilizando el mecanismo de registro de sistema del Sistema
+ Operativo, o a un fichero, dependiendo del valor de la directiva de
+ configuración <link linkend="ini.error-log">error_log</link>
+ </entry>
+ </row>
+ <row>
+ <entry>1</entry>
+ <entry>
+ <parameter>message</parameter> es enviado por correo electrónico
+ a la dirección del parámetro <parameter>destination</parameter>
+ (destino). Este es el único tipo de mensaje donde se utiliza
+ el cuarto parámetro, <parameter>extra_headers</parameter>. Este
+ tipo de mensaje utiliza la misma funcionalidad interna que
+ <function>Mail</function> realiza.
+ </entry>
+ </row>
+ <row>
+ <entry>2</entry>
+ <entry>
+ <parameter>message</parameter> es enviado a través de la conexión
+ de depuración de PHP. Esta opción está disponible sólo si
+ <link linkend="enable-debugger">la depuración remota ha sido
+ activada</link>. En este caso el parámetro
+ <parameter>destination</parameter> especifica el nombre de host
+ o dirección IP y, opcionalmente, el número de puerto del
+ socket que recibe la información de depuración.
+ </entry>
+ </row>
+ <row>
+ <entry>3</entry>
+ <entry>
+ <parameter>message</parameter> es añadido al fichero
+ <parameter>destination</parameter>.
+ </entry>
+ </row>
</tbody>
</tgroup>
- </table>
- </para>
+ </table></para>
<para>
- <example role="php">
- <title><function>error_log</function> examples</title>
+ <example>
+ <title><function>error_log</function> ejemplos</title>
<programlisting role="php">
// Send notification through the server log if we can not
// connect to the database.
-if (!Ora_Logon ($username, $password)) {
- error_log ("Oracle database not available!", 0);
+if (!Ora_Logon($username, $password)) {
+ error_log("Oracle database not available!", 0);
}
// Notify administrator by email if we run out of FOO
if (!($foo = allocate_new_foo()) {
- error_log ("Big trouble, we're all out of FOOs!", 1,
- "operator <email protected>");
+ error_log("Big trouble, we're all out of FOOs!", 1,
+ "operator <email protected>");
}
// other ways of calling error_log():
-error_log ("You messed up!", 2, "127.0.0.1:7000");
-error_log ("You messed up!", 2, "loghost");
-error_log ("You messed up!", 3, "/var/tmp/my-errors.log");
- </programlisting>
- </example>
- </para>
+error_log("You messed up!", 2, "127.0.0.1:7000");
+error_log("You messed up!", 2, "loghost");
+error_log("You messed up!", 3, "/var/tmp/my-errors.log");
+</programlisting>
+ </example></para>
</refsect1>
</refentry>
<refentry id="function.error-reporting">
<refnamediv>
<refname>error_reporting</refname>
- <refpurpose>set which PHP errors are reported</refpurpose>
+ <refpurpose>establece que errores PHP son registrados</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripción</title>
<funcsynopsis>
- <funcprototype>
- <funcdef>int <function>error_reporting</function></funcdef>
- <paramdef>int
- <parameter><optional>level</optional></parameter>
- </paramdef>
- </funcprototype>
+ <funcdef>int <function>error_reporting</function></funcdef>
+ <paramdef>int <parameter><optional>level</optional></parameter></paramdef>
</funcsynopsis>
<para>
- Sets PHP's error reporting level and returns the old level. The
- error reporting level is either a bitmask, or named constant. Using
- named constants is strongly encouraged to ensure compatibility for
- future versions. As error levels are added, the range of integers
- increases, so older integer-based error levels will not always
- behave as expected.
- <example role="php">
- <title>Error Integer changes</title>
- <programlisting role="php">
-error_reporting (55); // PHP 3 equivalent to E_ALL ^ E_NOTICE
-
-/* ...in PHP 4, '55' would mean (E_ERROR | E_WARNING | E_PARSE |
-E_CORE_ERROR | E_CORE_WARNING) */
-
-error_reporting (2039); // PHP 4 equivalent to E_ALL ^ E_NOTICE
-
-error_reporting (E_ALL ^ E_NOTICE); // The same in both PHP 3 and 4
- </programlisting>
- </example>
- Follow the links for the internal values to get their meanings:
+ Establece el nivel de registro de los errores PHP y devuelve el nivel
+ anterior. El nivel de registro es una máscara de bits de los valores
+ siguientes (siga los enlaces a los valores internos para obtener sus
+ significados):
<table>
- <title><function>error_reporting</function> bit values</title>
+ <title><function>error_reporting</function> valores de bit</title>
<tgroup cols="2">
<thead>
<row>
- <entry>constant</entry>
- <entry>value</entry>
+ <entry>valor</entry>
+ <entry>nombre interno</entry>
</row>
</thead>
<tbody>
<row>
<entry>1</entry>
- <entry>
- <link linkend="internal.e-error">E_ERROR</link>
- </entry>
+ <entry><link linkend="internal.e-error">E_ERROR</link></entry>
</row>
<row>
<entry>2</entry>
- <entry>
- <link linkend="internal.e-warning">E_WARNING</link>
- </entry>
+ <entry><link linkend="internal.e-warning">E_WARNING</link></entry>
</row>
<row>
<entry>4</entry>
- <entry>
- <link linkend="internal.e-parse">E_PARSE</link>
- </entry>
+ <entry><link linkend="internal.e-parse">E_PARSE</link></entry>
</row>
<row>
<entry>8</entry>
- <entry>
- <link linkend="internal.e-notice">E_NOTICE</link>
- </entry>
+ <entry><link linkend="internal.e-notice">E_NOTICE</link></entry>
</row>
<row>
<entry>16</entry>
- <entry>
- <link linkend="internal.e-core-error">E_CORE_ERROR</link>
- </entry>
+ <entry><link linkend="internal.e-core-error">E_CORE_ERROR</link></entry>
</row>
<row>
<entry>32</entry>
- <entry>
- <link linkend="internal.e-core-warning">E_CORE_WARNING</link>
- </entry>
- </row>
- <row>
- <entry>64</entry>
- <entry>
- <link linkend="internal.e-compile-error">E_COMPILE_ERROR</link>
- </entry>
+ <entry><link linkend="internal.e-core-warning">E_CORE_WARNING</link></entry>
</row>
- <row>
- <entry>128</entry>
- <entry>
- <link linkend="internal.e-compile-warning">E_COMPILE_WARNING</link>
- </entry>
- </row>
- <row>
- <entry>256</entry>
- <entry>
- <link linkend="internal.e-user-error">E_USER_ERROR</link>
- </entry>
- </row>
- <row>
- <entry>512</entry>
- <entry>
- <link linkend="internal.e-user-warning">E_USER_WARNING</link>
- </entry>
- </row>
- <row>
- <entry>1024</entry>
- <entry>
- <link linkend="internal.e-user-error">E_USER_NOTICE</link>
- </entry>
- </row>
</tbody>
</tgroup>
- </table>
- </para>
- <para>
- <example role="php">
- <title><function>error_reporting</function> examples</title>
- <programlisting role="php">
-error_reporting(0);
-/* Turn off all reporting */
-
-error_reporting (7); // Old syntax, PHP 2/3
-error_reporting (E_ERROR | E_WARNING | E_PARSE); // New syntax for PHP 3/4
-/* Good to use for simple running errors */
-
-error_reporting (15); // Old syntax, PHP 2/3
-error_reporting (E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // New syntax for PHP 3/4
-/* good for code authoring to report uninitialized or (possibly mis-spelled) variables */
-
-error_reporting (63); // Old syntax, PHP 2/3
-error_reporting (E_ALL); // New syntax for PHP3/4
-/* report all PHP errors */
- </programlisting>
- </example>
- </para>
+ </table></para>
</refsect1>
</refentry>
Index: phpdoc/es/functions/funchand.xml
diff -u phpdoc/es/functions/funchand.xml:1.1 phpdoc/es/functions/funchand.xml:1.2
--- phpdoc/es/functions/funchand.xml:1.1 Wed Sep 13 09:41:59 2000
+++ phpdoc/es/functions/funchand.xml Wed Sep 13 11:29:13 2000
@@ -200,218 +200,211 @@
<refentry id="function.func-get-arg">
<refnamediv>
<refname>func_get_arg</refname>
- <refpurpose>Return an item from the argument list</refpurpose>
+ <refpurpose>Devuelve un elemento de la lista de argumentos.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripción</title>
<funcsynopsis>
- <funcprototype>
- <funcdef>mixed <function>func_get_arg</function></funcdef>
- <paramdef>int <parameter>arg_num</parameter></paramdef>
- </funcprototype>
+ <funcdef>int <function>func_get_arg</function></funcdef>
+ <paramdef>int <parameter>arg_num</parameter></paramdef>
</funcsynopsis>
<simpara>
- Returns the argument which is at the
- <parameter>arg_num</parameter>'th offset into a user-defined
- function's argument list. Function arguments are counted starting
- from zero. <function>Func_get_arg</function> will generate a
- warning if called from outside of a function definition.
- </simpara>
- <simpara>
- If <parameter>arg_num</parameter> is greater than the number of
- arguments actually passed, a warning will be generated and
- <function>func_get_arg</function> will return FALSE.
- </simpara>
- <para>
- <informalexample>
- <programlisting role="php">
+ Devuelve el argumento que está en la posición
+ <parameter>arg_num</parameter> en la lista de argumentos de
+ una función definida por el usuario. Los argumentos de la
+ función se cuentan comenzando por la posición cero.
+ <function>func_get_arg</function>
+ generará un aviso si se llama desde fuera de la definición
+ de la función.
+ </simpara>
+
+ <simpara>
+ Si <parameter>arg_num</parameter> es mayor que el número de
+ argumentos pasados realmente, se generará un aviso y
+ <function>func_get_arg</function> devolverá FALSE.
+ </simpara>
+
+ <para>
+ <informalexample>
+ <programlisting>
<?php
function foo() {
- $numargs = func_num_args();
- echo "Number of arguments: $numargs<br>\n";
- if ($numargs >= 2) {
- echo "Second argument is: " . func_get_arg (1) . "<br>\n";
- }
-}
+ $numargs = func_num_args();
+ echo "Number of arguments: $numargs<br>\n";
+ if ( $numargs >= 2 ) {
+ echo "Second argument is: " . func_get_arg( 1 ) . "<br>\n";
+ }
+}
-foo (1, 2, 3);
+foo( 1, 2, 3 );
?>
- </programlisting>
- </informalexample>
- </para>
- <simpara>
- <function>Func_get_arg</function> may be used in conjunction with
- <function>func_num_args</function> and
- <function>func_get_args</function> to allow user-defined
- functions to accept variable-length argument lists.
- </simpara>
- <note>
- <simpara>
- This function was added in PHP 4.
- </simpara>
- </note>
+ </programlisting>
+ </informalexample>
+ </para>
+
+ <simpara>
+ <function>func_get_arg</function> puede utilizarse conjuntamente
+ con <function>func_num_args</function> y
+ <function>func_get_args</function> para permitir a las funciones
+ definidas por el usuario que acepten listas de argumentos de
+ longitud variable.
+ </simpara>
+
+ <note>
+ <simpara>
+ Esta función fue añadida en PHP 4.
+ </simpara>
+ </note>
+
</refsect1>
</refentry>
<refentry id="function.func-get-args">
<refnamediv>
<refname>func_get_args</refname>
- <refpurpose>
- Returns an array comprising a function's argument list
- </refpurpose>
+ <refpurpose>Devuelve un array que contiene la lista de argumentos de
+ una función.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripción</title>
<funcsynopsis>
- <funcprototype>
- <funcdef>array <function>func_get_args</function></funcdef>
- <paramdef>void <parameter></parameter></paramdef>
- </funcprototype>
+ <funcdef>int <function>func_get_args</function></funcdef>
+ <paramdef>void <parameter></parameter></paramdef>
</funcsynopsis>
<simpara>
- Returns an array in which each element is the corresponding
- member of the current user-defined function's argument
- list. <function>Func_get_args</function> will generate a warning
- if called from outside of a function definition.
+ Devuelve un array en el que cada elemento es el miembro correspondiente
+ de la lista de argumentos de la función definida por el usuario actual.
+ <function>func_get_args</function> generará un aviso si es llamada desde
+ fuera de la definición de la función.
</simpara>
+
<para>
<informalexample>
- <programlisting role="php">
+ <programlisting>
<?php
function foo() {
- $numargs = func_num_args();
- echo "Number of arguments: $numargs<br>\n";
- if ($numargs >= 2) {
- echo "Second argument is: " . func_get_arg (1) . "<br>\n";
- }
- $arg_list = func_get_args();
- for ($i = 0; $i < $numargs; $i++) {
- echo "Argument $i is: " . $arg_list[$i] . "<br>\n";
- }
+ $numargs = func_num_args();
+ echo "Number of arguments: $numargs<br>\n";
+ if ( $numargs >= 2 ) {
+ echo "Second argument is: " . func_get_arg( 1 ) . "<br>\n";
+ }
+ $arg_list = func_get_args();
+ for ( $i = 0; $i < $numargs; $i++ ) {
+ echo "Argument $i is: " . $arg_list[$i] . "<br>\n";
+ }
}
-foo (1, 2, 3);
+foo( 1, 2, 3 );
?>
- </programlisting>
- </informalexample>
- </para>
- <simpara>
- <function>Func_get_args</function> may be used in conjunction
- with <function>func_num_args</function> and
- <function>func_get_arg</function> to allow user-defined functions
- to accept variable-length argument lists.
- </simpara>
- <note>
- <simpara>
- This function was added in PHP 4.
- </simpara>
- </note>
+ </programlisting>
+ </informalexample>
+ </para>
+
+ <simpara>
+ <function>func_get_args</function> puede utilizarse conjuntamente con
+ <function>func_num_args</function> y
+ <function>func_get_arg</function> para permitir a las funciones definidas
+ por el usuario que acepten listas de argumentos de longitud variable.
+ </simpara>
+
+ <note>
+ <simpara>
+ Esta función fue añadida en PHP 4.
+ </simpara>
+ </note>
+
</refsect1>
</refentry>
<refentry id="function.func-num-args">
<refnamediv>
<refname>func_num_args</refname>
- <refpurpose>
- Returns the number of arguments passed to the function
- </refpurpose>
+ <refpurpose>Devuelve el número de argumentos pasados a la función.</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripción</title>
<funcsynopsis>
- <funcprototype>
- <funcdef>int <function>func_num_args</function></funcdef>
- <paramdef>void <parameter></parameter></paramdef>
- </funcprototype>
+ <funcdef>int <function>func_num_args</function></funcdef>
+ <paramdef>void <parameter></parameter></paramdef>
</funcsynopsis>
<simpara>
- Returns the number of arguments passed into the current
- user-defined function. <function>Func_num_args</function> will
- generate a warning if called from outside of a function
- definition.
+ Devuelve el número de argumentos pasados a la función actual definida por el usuario.
+ <function>func_num_args</function> generará un aviso si es llamada desde fuera de
+ la definición de la función.
</simpara>
- <para>
- <informalexample>
- <programlisting role="php">
+
+ <para>
+ <informalexample>
+ <programlisting>
<?php
function foo() {
- $numargs = func_num_args();
- echo "Number of arguments: $numargs\n";
-}
+ $numargs = func_num_args();
+ echo "Number of arguments: $numargs\n";
+}
-foo (1, 2, 3); // Prints 'Number of arguments: 3'
+foo( 1, 2, 3 ); // Prints 'Number of arguments: 3'
?>
- </programlisting>
- </informalexample>
- </para>
- <simpara>
- <function>Func_num_args</function> may be used in conjunction
- with <function>func_get_arg</function> and
- <function>func_get_args</function> to allow user-defined
- functions to accept variable-length argument lists.
- </simpara>
- <note>
- <simpara>
- This function was added in PHP 4.
- </simpara>
- </note>
+ </programlisting>
+ </informalexample>
+ </para>
+
+ <simpara>
+ <function>func_num_args</function> puede utilizarse conjuntamente con
+ <function>func_get_arg</function> y
+ <function>func_get_args</function> para permitir a las funciones definidas
+ por el usuario que acepten listas de argumentos de longitud variable.
+ </simpara>
+
+ <note>
+ <simpara>
+ Esta función fue añadida en PHP 4.
+ </simpara>
+ </note>
+
</refsect1>
</refentry>
<refentry id="function.function-exists">
<refnamediv>
<refname>function_exists</refname>
- <refpurpose>
- Return true if the given function has been defined
- </refpurpose>
+ <refpurpose>Devuelve true si la función dada ha sido definida</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>Descripción</title>
<funcsynopsis>
- <funcprototype>
- <funcdef>int <function>function_exists</function></funcdef>
- <paramdef>string <parameter>function_name</parameter></paramdef>
- </funcprototype>
+ <funcdef>int <function>function_exists</function></funcdef>
+ <paramdef>string <parameter>function_name</parameter></paramdef>
</funcsynopsis>
<simpara>
- Checks the list of defined functions for
- <parameter>function_name</parameter>. Returns true if the given
- function name was found, false otherwise.
+ Consulta la lista de funciones definidas buscando <parameter>function_name</parameter>
+ (nombre de función). Devuelve true si encuentra el nombre de función dado,
+ false en otro caso.
</simpara>
</refsect1>
</refentry>
<refentry id="function.register-shutdown-function">
- <refnamediv>
- <refname>register_shutdown_function</refname>
- <refpurpose>
- Register a function for execution on shutdown
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int
- <function>register_shutdown_function</function>
- </funcdef>
- <paramdef>string <parameter>func</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <simpara>
- Registers the function named by <parameter>func</parameter> to be
- executed when script processing is complete.</simpara>
- <para>
- Common Pitfalls:
- </para>
- <simpara>
- Since no output is allowed to the browser in this function, you
- will be unable to debug it using statements such as print or
- echo.
- </simpara>
- </refsect1>
- </refentry>
-
+ <refnamediv>
+ <refname>register_shutdown_function</refname>
+ <refpurpose>Registra una función para su ejecución en el cierre.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Descripción</title>
+ <funcsynopsis>
+ <funcdef>int <function>register_shutdown_function</function></funcdef>
+ <paramdef>string <parameter>func</parameter></paramdef>
+ </funcsynopsis>
+ <simpara>
+ Registra la función nombrada en <parameter>func</parameter>
+ para que se ejecute cuando el script procese su finalización.</simpara>
+ <para>
+ Aviso:</para>
+ <simpara>
+ Debido a que no se permite ningún tipo de salida en el navegador en esta
+ función, no será capaz de depurarla utilizando sentencias como print o echo.</simpara>
+ </refsect1>
+ </refentry>
+
</reference>
<!-- Keep this comment at the end of the file
Index: phpdoc/es/functions/info.xml
diff -u phpdoc/es/functions/info.xml:1.2 phpdoc/es/functions/info.xml:1.3
--- phpdoc/es/functions/info.xml:1.2 Wed Aug 23 23:51:15 2000
+++ phpdoc/es/functions/info.xml Wed Sep 13 11:29:13 2000
@@ -2,153 +2,6 @@
<title>opciones e información de PHP</title>
<titleabbrev>opciones/información PHP</titleabbrev>
- <refentry id="function.error-log">
- <refnamediv>
- <refname>error_log</refname>
- <refpurpose>envía un mensaje de error a algún lugar</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Descripción</title>
- <funcsynopsis>
- <funcdef>int <function>error_log</function></funcdef>
- <paramdef>string <parameter>message</parameter></paramdef>
- <paramdef>int <parameter>message_type</parameter></paramdef>
- <paramdef>string <parameter><optional>destination</optional></parameter></paramdef>
- <paramdef>string <parameter><optional>extra_headers</optional></parameter></paramdef>
- </funcsynopsis>
- <para>
- Envía un mensaje de error al log de errores del servidor web, a
- un puerto <acronym>TCP</acronym> o a un fichero. El primer parámetro,
- <parameter>message</parameter> (mensaje), es el mensaje de error
- que debe ser registrado. El segundo parámetro, <parameter>message_type</parameter>
- (tipo de mensaje) indica el lugar al que debe dirigirse:
- <table>
- <title><function>error_log</function> tipos de log</title>
- <tgroup cols="2">
- <tbody>
- <row>
- <entry>0</entry>
- <entry>
- <parameter>message</parameter> es enviado al registro de sistema
- de PHP, utilizando el mecanismo de registro de sistema del Sistema
- Operativo, o a un fichero, dependiendo del valor de la directiva de
- configuración <link linkend="ini.error-log">error_log</link>
- </entry>
- </row>
- <row>
- <entry>1</entry>
- <entry>
- <parameter>message</parameter> es enviado por correo electrónico
- a la dirección del parámetro <parameter>destination</parameter>
- (destino). Este es el único tipo de mensaje donde se utiliza
- el cuarto parámetro, <parameter>extra_headers</parameter>. Este
- tipo de mensaje utiliza la misma funcionalidad interna que
- <function>Mail</function> realiza.
- </entry>
- </row>
- <row>
- <entry>2</entry>
- <entry>
- <parameter>message</parameter> es enviado a través de la conexión
- de depuración de PHP. Esta opción está disponible sólo si
- <link linkend="enable-debugger">la depuración remota ha sido
- activada</link>. En este caso el parámetro
- <parameter>destination</parameter> especifica el nombre de host
- o dirección IP y, opcionalmente, el número de puerto del
- socket que recibe la información de depuración.
- </entry>
- </row>
- <row>
- <entry>3</entry>
- <entry>
- <parameter>message</parameter> es añadido al fichero
- <parameter>destination</parameter>.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table></para>
- <para>
- <example>
- <title><function>error_log</function> ejemplos</title>
- <programlisting role="php">
-// Send notification through the server log if we can not
-// connect to the database.
-if (!Ora_Logon($username, $password)) {
- error_log("Oracle database not available!", 0);
-}
-
-// Notify administrator by email if we run out of FOO
-if (!($foo = allocate_new_foo()) {
- error_log("Big trouble, we're all out of FOOs!", 1,
- "operator <email protected>");
-}
-
-// other ways of calling error_log():
-error_log("You messed up!", 2, "127.0.0.1:7000");
-error_log("You messed up!", 2, "loghost");
-error_log("You messed up!", 3, "/var/tmp/my-errors.log");
-</programlisting>
- </example></para>
- </refsect1>
- </refentry>
-
- <refentry id="function.error-reporting">
- <refnamediv>
- <refname>error_reporting</refname>
- <refpurpose>establece que errores PHP son registrados</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Descripción</title>
- <funcsynopsis>
- <funcdef>int <function>error_reporting</function></funcdef>
- <paramdef>int <parameter><optional>level</optional></parameter></paramdef>
- </funcsynopsis>
- <para>
- Establece el nivel de registro de los errores PHP y devuelve el nivel
- anterior. El nivel de registro es una máscara de bits de los valores
- siguientes (siga los enlaces a los valores internos para obtener sus
- significados):
- <table>
- <title><function>error_reporting</function> valores de bit</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>valor</entry>
- <entry>nombre interno</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>1</entry>
- <entry><link linkend="internal.e-error">E_ERROR</link></entry>
- </row>
- <row>
- <entry>2</entry>
- <entry><link linkend="internal.e-warning">E_WARNING</link></entry>
- </row>
- <row>
- <entry>4</entry>
- <entry><link linkend="internal.e-parse">E_PARSE</link></entry>
- </row>
- <row>
- <entry>8</entry>
- <entry><link linkend="internal.e-notice">E_NOTICE</link></entry>
- </row>
- <row>
- <entry>16</entry>
- <entry><link linkend="internal.e-core-error">E_CORE_ERROR</link></entry>
- </row>
- <row>
- <entry>32</entry>
- <entry><link linkend="internal.e-core-warning">E_CORE_WARNING</link></entry>
- </row>
- </tbody>
- </tgroup>
- </table></para>
- </refsect1>
- </refentry>
-
<refentry id="function.extension-loaded">
<refnamediv>
<refname>extension_loaded</refname>
Index: phpdoc/es/functions/misc.xml
diff -u phpdoc/es/functions/misc.xml:1.2 phpdoc/es/functions/misc.xml:1.3
--- phpdoc/es/functions/misc.xml:1.2 Wed Aug 23 23:51:15 2000
+++ phpdoc/es/functions/misc.xml Wed Sep 13 11:29:13 2000
@@ -268,193 +268,6 @@
</refsect1>
</refentry>
- <refentry id="function.func-get-arg">
- <refnamediv>
- <refname>func_get_arg</refname>
- <refpurpose>Devuelve un elemento de la lista de argumentos.</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Descripción</title>
- <funcsynopsis>
- <funcdef>int <function>func_get_arg</function></funcdef>
- <paramdef>int <parameter>arg_num</parameter></paramdef>
- </funcsynopsis>
- <simpara>
- Devuelve el argumento que está en la posición
- <parameter>arg_num</parameter> en la lista de argumentos de
- una función definida por el usuario. Los argumentos de la
- función se cuentan comenzando por la posición cero.
- <function>func_get_arg</function>
- generará un aviso si se llama desde fuera de la definición
- de la función.
- </simpara>
-
- <simpara>
- Si <parameter>arg_num</parameter> es mayor que el número de
- argumentos pasados realmente, se generará un aviso y
- <function>func_get_arg</function> devolverá FALSE.
- </simpara>
-
- <para>
- <informalexample>
- <programlisting>
-<?php
-function foo() {
- $numargs = func_num_args();
- echo "Number of arguments: $numargs<br>\n";
- if ( $numargs >= 2 ) {
- echo "Second argument is: " . func_get_arg( 1 ) . "<br>\n";
- }
-}
-
-foo( 1, 2, 3 );
-?>
- </programlisting>
- </informalexample>
- </para>
-
- <simpara>
- <function>func_get_arg</function> puede utilizarse conjuntamente
- con <function>func_num_args</function> y
- <function>func_get_args</function> para permitir a las funciones
- definidas por el usuario que acepten listas de argumentos de
- longitud variable.
- </simpara>
-
- <note>
- <simpara>
- Esta función fue añadida en PHP 4.
- </simpara>
- </note>
-
- </refsect1>
- </refentry>
-
- <refentry id="function.func-get-args">
- <refnamediv>
- <refname>func_get_args</refname>
- <refpurpose>Devuelve un array que contiene la lista de argumentos de
- una función.</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Descripción</title>
- <funcsynopsis>
- <funcdef>int <function>func_get_args</function></funcdef>
- <paramdef>void <parameter></parameter></paramdef>
- </funcsynopsis>
- <simpara>
- Devuelve un array en el que cada elemento es el miembro correspondiente
- de la lista de argumentos de la función definida por el usuario actual.
- <function>func_get_args</function> generará un aviso si es llamada desde
- fuera de la definición de la función.
- </simpara>
-
- <para>
- <informalexample>
- <programlisting>
-<?php
-function foo() {
- $numargs = func_num_args();
- echo "Number of arguments: $numargs<br>\n";
- if ( $numargs >= 2 ) {
- echo "Second argument is: " . func_get_arg( 1 ) . "<br>\n";
- }
- $arg_list = func_get_args();
- for ( $i = 0; $i < $numargs; $i++ ) {
- echo "Argument $i is: " . $arg_list[$i] . "<br>\n";
- }
-}
-
-foo( 1, 2, 3 );
-?>
- </programlisting>
- </informalexample>
- </para>
-
- <simpara>
- <function>func_get_args</function> puede utilizarse conjuntamente con
- <function>func_num_args</function> y
- <function>func_get_arg</function> para permitir a las funciones definidas
- por el usuario que acepten listas de argumentos de longitud variable.
- </simpara>
-
- <note>
- <simpara>
- Esta función fue añadida en PHP 4.
- </simpara>
- </note>
-
- </refsect1>
- </refentry>
-
- <refentry id="function.func-num-args">
- <refnamediv>
- <refname>func_num_args</refname>
- <refpurpose>Devuelve el número de argumentos pasados a la función.</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Descripción</title>
- <funcsynopsis>
- <funcdef>int <function>func_num_args</function></funcdef>
- <paramdef>void <parameter></parameter></paramdef>
- </funcsynopsis>
- <simpara>
- Devuelve el número de argumentos pasados a la función actual definida por el usuario.
- <function>func_num_args</function> generará un aviso si es llamada desde fuera de
- la definición de la función.
- </simpara>
-
- <para>
- <informalexample>
- <programlisting>
-<?php
-function foo() {
- $numargs = func_num_args();
- echo "Number of arguments: $numargs\n";
-}
-
-foo( 1, 2, 3 ); // Prints 'Number of arguments: 3'
-?>
- </programlisting>
- </informalexample>
- </para>
-
- <simpara>
- <function>func_num_args</function> puede utilizarse conjuntamente con
- <function>func_get_arg</function> y
- <function>func_get_args</function> para permitir a las funciones definidas
- por el usuario que acepten listas de argumentos de longitud variable.
- </simpara>
-
- <note>
- <simpara>
- Esta función fue añadida en PHP 4.
- </simpara>
- </note>
-
- </refsect1>
- </refentry>
-
- <refentry id="function.function-exists">
- <refnamediv>
- <refname>function_exists</refname>
- <refpurpose>Devuelve true si la función dada ha sido definida</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Descripción</title>
- <funcsynopsis>
- <funcdef>int <function>function_exists</function></funcdef>
- <paramdef>string <parameter>function_name</parameter></paramdef>
- </funcsynopsis>
- <simpara>
- Consulta la lista de funciones definidas buscando <parameter>function_name</parameter>
- (nombre de función). Devuelve true si encuentra el nombre de función dado,
- false en otro caso.
- </simpara>
- </refsect1>
- </refentry>
-
-
<refentry id="function.get-browser">
<refnamediv>
<refname>get_browser</refname>
@@ -698,28 +511,6 @@
</refsect1>
</refentry>
-
- <refentry id="function.register-shutdown-function">
- <refnamediv>
- <refname>register_shutdown_function</refname>
- <refpurpose>Registra una función para su ejecución en el cierre.</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Descripción</title>
- <funcsynopsis>
- <funcdef>int <function>register_shutdown_function</function></funcdef>
- <paramdef>string <parameter>func</parameter></paramdef>
- </funcsynopsis>
- <simpara>
- Registra la función nombrada en <parameter>func</parameter>
- para que se ejecute cuando el script procese su finalización.</simpara>
- <para>
- Aviso:</para>
- <simpara>
- Debido a que no se permite ningún tipo de salida en el navegador en esta
- función, no será capaz de depurarla utilizando sentencias como print o echo.</simpara>
- </refsect1>
- </refentry>
<refentry id="function.serialize">
<refnamediv>
- Next message: Thomas Schuermann: "[PHP-DOC] cvs: phpdoc /de/language types.xml"
- Previous message: Thomas Schuermann: "[PHP-DOC] cvs: phpdoc /de Translators"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

