cvs: phpdoc-es / translation.xml /appendices migration.xml /faq installation.xml /reference/strings/functions localeconv.xml money-format.xml
/reference/var/functions print-r.xml unserialize.xml var-dump.xml var-export.xml /security index.xml
| From: | Leonardo Boshell | Date: | Sat, 10 Jan 2004 00:21:33 +0000 |
| Subject: | cvs: phpdoc-es / translation.xml /appendices migration.xml /faq installation.xml /reference/strings/functions localeconv.xml money-format.xml /reference/var/functions print-r.xml unserialize.xml var-dump.xml var-export.xml /security index.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-460@lists.php.net to get a copy of this message | ||
lboshell Fri Jan 9 19:21:33 2004 EDT
Modified files:
/phpdoc-es translation.xml
/phpdoc-es/appendices migration.xml
/phpdoc-es/faq installation.xml
/phpdoc-es/reference/strings/functions localeconv.xml
money-format.xml
/phpdoc-es/reference/var/functions print-r.xml unserialize.xml
var-dump.xml var-export.xml
/phpdoc-es/security index.xml
Log:
- Actualizaciones
- Nuevo documento: faq/installation.xml
Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.112 phpdoc-es/translation.xml:1.113 --- phpdoc-es/translation.xml:1.112 Fri Jan 9 13:59:26 2004 +++ phpdoc-es/translation.xml Fri Jan 9 19:21:24 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.112 $ --> +<!-- $Revision: 1.113 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -45,7 +45,6 @@ <file name="reference/errorfunc/functions/set-error-handler.xml" person="javi" type="review" date="01.12.2003"/> <file name="reference/errorfunc/functions/trigger-error.xml" person="javi" type="review" date="01.12.2003"/> <file name="reference/errorfunc/functions/user-error.xml" person="javi" type="review" date="01.12.2003"/> -<file name="faq/installation.xml" person="lboshell" type="review" date="28.12.2003"/> <file name="faq/languages.xml" person="lboshell" type="review" date="28.12.2003"/> <file name="faq/mailinglist.xml" person="lboshell" type="review" date="28.12.2003"/> </work-in-progress> Index: phpdoc-es/appendices/migration.xml diff -u phpdoc-es/appendices/migration.xml:1.6 phpdoc-es/appendices/migration.xml:1.7 --- phpdoc-es/appendices/migration.xml:1.6 Fri Jan 9 13:59:26 2004 +++ phpdoc-es/appendices/migration.xml Fri Jan 9 19:21:25 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.24 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.25 Maintainer: lboshell Status: ready --> <appendix id="migration"> <title>Migración desde PHP/FI 2 hacia PHP 3</title> @@ -310,7 +310,7 @@ <![CDATA[ $da = fopen($archivo, "r"); if ($da == -1); - echo("No pudo abrirse $archivo para lectura<br>\n"); + echo("No pudo abrirse $archivo para lectura<br />\n"); endif; ]]> </programlisting> @@ -320,7 +320,7 @@ código nuevo</title> <programlisting role="php"> <![CDATA[ -$da = @fopen($archivo, "r") or print("No pudo abrirse $archivo para lectura<br>\n"); +$da = @fopen($archivo, "r") or print("No pudo abrirse $archivo para lectura<br />\n"); ]]> </programlisting> </example> Index: phpdoc-es/faq/installation.xml diff -u phpdoc-es/faq/installation.xml:1.1 phpdoc-es/faq/installation.xml:1.2 --- phpdoc-es/faq/installation.xml:1.1 Sun May 11 18:37:32 2003 +++ phpdoc-es/faq/installation.xml Fri Jan 9 19:21:26 2004 @@ -1,59 +1,66 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.26 Maintainer: lboshell Status: ready --> <chapter id="faq.installation"> - <title>Installation</title> - <titleabbrev>Installation</titleabbrev> + <title>Instalación</title> + <titleabbrev>Instalación</titleabbrev> <para> - This section holds common questions about the way to install - PHP. PHP is available for almost any OS (except maybe for - MacOS before OSX), and almost any web server. +Esta sección contiene preguntas comunes sobre el modo de +instalar PHP. PHP se encuentra disponible para casi cualquier SO +(excepto quizás por MacOS antes de OSX), y casi cualquier +servidor web. </para> <para> - To install PHP, follow the instructions in the - <ulink url="&url.file.installation;">INSTALL</ulink> - file located in the distribution. Windows users should also read the - <ulink url="&url.file.readmewin;">install.txt</ulink> - file. There are also some helpful hints for Windows users - <link linkend="install.windows">here</link>. +Para instalar PHP, siga las instrucciones del archivo <ulink +url="&url.file.installation;">INSTALL</ulink> ubicado en la +distribución. Los usuarios de windows también +deberían leer el archivo <ulink +url="&url.file.readmewin;">install.txt</ulink>. También existen +algunas pistas útiles para usuarios de windows <link +linkend="install.windows">aquí</link>. </para> <qandaset> <qandaentry id="faq.installation.phpini"> <question> <para> - Unix/Windows: Where should my &php.ini; file be - located? + Unix/Windows: ¿En dónde debe estar ubicado mi + archivo &php.ini;? </para> </question> <answer> <para> - By default on UNIX it should be in <filename>/usr/local/lib</filename> - which is <filename><install-path>/lib</filename>. - Most people will want to change this at compile-time with the - <link linkend="install.configure.with-config-file-path">--with-config-file-path</link> - flag. You would, for example, set it with something like: +Por defecto, en Unix debe estar +en <filename>/usr/local/lib</filename>, lo que +es, <filename><ruta-instalacion>/lib</filename>. La +mayoría de personas querrán modificar éste valor +en tiempo de compilación con la bandera <link +linkend="install.configure.with-config-file-path">--with-config-file-path</link>. +Podría, por ejemplo, definirla como: <programlisting> --with-config-file-path=/etc </programlisting> - And then you would copy <filename>php.ini-dist</filename> from - the distribution to <filename>/etc/php.ini</filename> and - edit it to make any local changes you want. +Y luego copiaría <filename>php.ini-dist</filename> desde su +distribución a <filename>/etc/php.ini</filename> y lo +editaría para hacer cualquier modificación local que +desee. </para> <programlisting> --with-config-file-scan-dir=PATH </programlisting> <para> - On Windows the default path for the &php.ini; file is the Windows - directory. If you're using the Apache webserver, &php.ini; is first - searched in the Apaches install directory, e.g. <filename>c:\program - files\apache group\apache</filename>. This way you can have - different &php.ini; files for different versions of Apache on the same - machine. +En windows, la ruta predeterminada para el archivo &php.ini; es el +directorio de windows. Si está usando el servidor web Apache, +&php.ini; será buscado primero en el directorio de +instalación de Apache, p.ej. <filename>c:\program files\apache +group\apache</filename>. De este modo, puede contar con diferentes +archivos &php.ini; para diferentes versiones de Apache en la misma +máquina. </para> <para> - See also the chapter about the <link - linkend="configuration.file">configuration file</link>. +Vea también el capítulo sobre el <link +linkend="configuration.file">archivo de configuración</link>. </para> </answer> </qandaentry> @@ -61,23 +68,26 @@ <qandaentry id="faq.installation.nodata"> <question> <para> - Unix: I installed PHP, but every time I load a document, I get the - message 'Document Contains No Data'! What's going on here? + Unix: Instalé PHP, ¡pero cada vez que cargo un + documento, recibo el mensaje 'Document Contains No Data'! + ¿Qué está pasando aquí? </para> </question> <answer> <para> - This probably means that PHP is having some sort of problem - and is core-dumping. Look in your server error log to see if - this is the case, and then try to reproduce the problem with - a small test case. If you know how to use 'gdb', it is very - helpful when you can provide a backtrace with your bug report - to help the developers pinpoint the problem. If you are using - PHP as an Apache module try something like: +Esto probablemente quiere decir que PHP está sufriendo +algún tipo de dificultad y está produciendo volcados de +memoria. Eche un vistazo a su registro de errores del servidor para +ver si éste es el caso, y luego trate de reproducir el problema +con un pequeño caso de prueba. Si sabe cómo usar 'gdb', +es muy útil cuando puede proveer un backtrace con su reporte de +fallo para ayudar a los desarrolladores a ubicar el problema. Si +está usando PHP como módulo de Apache, intente algo +como: <itemizedlist> <listitem> <para> - Stop your httpd processes +Detener todos sus procesos httpd </para> </listitem> <listitem> @@ -87,48 +97,50 @@ </listitem> <listitem> <para> - Stop your httpd processes +Detener todos sus procesos httpd </para> </listitem> <listitem> <para> - > run -X -f /path/to/httpd.conf + > run -X -f /ruta/hacia/httpd.conf </para> </listitem> <listitem> <para> - Then fetch the URL causing the problem with your browser +Luego recuperar la URL que causa el problema con su navegador </para> </listitem> <listitem> <para> - > run -X -f /path/to/httpd.conf + > run -X -f /ruta/hacia/httpd.conf </para> </listitem> <listitem> <para> - If you are getting a core dump, gdb should inform you of this now +Si está recibiendo un volcado de memoria, gdb debe informarle +de ésto. </para> </listitem> <listitem> <para> - type: bt + escriba: bt </para> </listitem> <listitem> <para> - You should include your backtrace in your bug report. This should be submitted to - <ulink url="&url.php.bugs;">&url.php.bugs;</ulink> +Ahora debe incluir su backtrace en su reporte de fallo. Éste +debe ser enviado desde <ulink +url="&url.php.bugs;">&url.php.bugs;</ulink> </para> </listitem> </itemizedlist> </para> <para> - If your script uses the regular expression functions - (<function>ereg</function> and friends), you should make sure - that you compiled PHP and Apache with the same regular - expression package. This should happen automatically with - PHP and Apache 1.3.x +Si su script usa las funciones de expresiones regulares +(<function>ereg</function> y amigas), debe asegurarse de que +compiló PHP y Apache con el mismo paquete de expresiones +regulares. Esto debe pasar automáticamente con PHP y Apache +1.3.x </para> </answer> </qandaentry> @@ -136,15 +148,16 @@ <qandaentry id="faq.installation.processing"> <question> <para> - Unix: I installed PHP using RPMS, but Apache isn't processing the - PHP pages! What's going on here? + Unix: Instalé PHP usando RPMS, ¡pero Apache no + está procesando las páginas PHP¡ + ¿Qué está pasando aquí? </para> </question> <answer> <para> - Assuming you installed both Apache and PHP from RPM packages, - you need to uncomment or add some or all of the following lines - in your &httpd.conf; file: +Asumiendo que ha instalado tanto Apache como PHP desde paquetes RPM, +necesita remover los caracteres de comentario, o agregar algunas o +todas de las siguientes líneas en su archivo &httpd.conf;: <programlisting> # Extra Modules AddModule mod_php.c @@ -153,17 +166,17 @@ # Extra Modules LoadModule php_module modules/mod_php.so -LoadModule php3_module modules/libphp3.so /* for PHP 3 */ -LoadModule php4_module modules/libphp4.so /* for PHP 4 */ +LoadModule php3_module modules/libphp3.so /* para PHP 3 */ +LoadModule php4_module modules/libphp4.so /* para PHP 4 */ LoadModule perl_module modules/libperl.so </programlisting> - And add: + Y agregar: <programlisting> -AddType application/x-httpd-php3 .php3 /* for PHP 3 */ -AddType application/x-httpd-php .php /* for PHP 4 */ +AddType application/x-httpd-php3 .php3 /* para PHP 3 */ +AddType application/x-httpd-php .php /* para PHP 4 */ </programlisting> - ... to the global properties, or to the properties of the - VirtualDomain you want to have PHP support added to. +... a las propiedades globales, o a las propiedades del VirtualDomain +para el cual desea tener soporte de PHP. </para> </answer> </qandaentry> @@ -171,37 +184,42 @@ <qandaentry id="faq.installation.compile"> <question> <para> - Unix: I installed PHP 3 using RPMS, but it doesn't compile with - the database support I need! What's going on here? + Unix: Instalé PHP 3 usando RPMS, ¡pero no compila + con el soporte de bases de datos que necesito! + ¿Qué está pasando? </para> </question> <answer> <para> - Due to the way PHP 3 built, it is not easy to build a - complete flexible PHP RPM. This issue is addressed in PHP 4. - For PHP 3, we currently suggest you use the mechanism described in the - INSTALL.REDHAT file in the PHP distribution. If you insist on using - an RPM version of PHP 3, read on... +Debido a la forma en que se compila PHP 3, no es sencillo crear un RPM +de PHP flexible completo. Este problema es atendido en PHP 4. Para PHP +3, actualmente le sugerimos que use el mecanismo descrito en el +archivo INSTALL.REDHAT en la distribución de PHP. Si insiste en +usar una versión RPM para PHP 3, continúe leyendo... </para> <para> - The RPM packagers are setting up the RPMS to install - without database support to simplify installations <emphasis>and</emphasis> - because RPMS use /usr/ instead of the standard /usr/local/ directory for - files. You need to tell the RPM spec file which databases to support - and the location of the top-level of your database server. +Los empaquetadores de RPM están configurando los RPMS para ser +instalados sin soporte de bases de datos para simplificar las +instalaciones <emphasis>y</emphasis> porque los RPMS usan /usr/ en +lugar del directorio /usr/local/ estándar para los +archivos. Usted necesita decirle al archivo spec del RPM cuáles +bases de datos soportar y la ubicación del nivel más +alto de su servidor de bases de datos. </para> <para> - This example will explain the process of adding support for the - popular MySQL database server, using the mod installation for Apache. +Este ejemplo explicará el proceso de agregar soporte para el +popular servidor de bases de datos MySQL, usando la instalación +de módulo para Apache. </para> <para> - Of course all of this information can be adjusted for any database - server that PHP supports. We will assume you installed MySQL and Apache - completely with RPMS for this example as well. +Por supuesto, toda esta información puede ser ajustada para +cualquier servidor de bases de datos soportada por PHP. Asumiremos que +ha instalado MySQL y Apache completamente con RPMS para este ejemplo +también. <itemizedlist> <listitem> - <para> - First remove mod_php3 : + <para> + Primero remueva mod_php3 : <programlisting> rpm -e mod_php3 </programlisting> @@ -209,7 +227,8 @@ </listitem> <listitem> <para> - Then get the source rpm and INSTALL it, NOT --rebuild + Luego obtenga el rpm fuente e INSTÁLELO, NO + use --rebuild <programlisting> rpm -Uvh mod_php3-3.0.5-2.src.rpm </programlisting> @@ -217,17 +236,19 @@ </listitem> <listitem> <para> - Then edit the <filename>/usr/src/redhat/SPECS/mod_php3.spec</filename> file + Luego edite el + archivo <filename>/usr/src/redhat/SPECS/mod_php3.spec</filename> </para> <para> - In the %build section add the database support you want, and the path. + En la sección %build agrege el soporte de bases de + datos que desea, y la ruta. </para> <para> - For MySQL you would add + Para MySQL, usted agregaría <programlisting> --with-mysql=/usr \ </programlisting> - The %build section will look something like this: + La sección %build se verá algo como: <programlisting> ./configure --prefix=/usr \ --with-apxs=/usr/sbin/apxs \ @@ -242,7 +263,8 @@ </listitem> <listitem> <para> - Once this modification is made then build the binary rpm as follows: +Una vez está hecha esta modificación, compile el rpm +binario de este modo: <programlisting> rpm -bb /usr/src/redhat/SPECS/mod_php3.spec </programlisting> @@ -250,17 +272,18 @@ </listitem> <listitem> <para> - Then install the rpm + Luego instale el rpm <programlisting> rpm -ivh /usr/src/redhat/RPMS/i386/mod_php3-3.0.5-2.i386.rpm </programlisting> </para> </listitem> </itemizedlist> - Make sure you restart Apache, and you now have PHP 3 with MySQL support - using RPM's. Note that it is probably much easier to just build - from the distribution tarball of PHP 3 and follow the instructions in - <filename>INSTALL.REDHAT</filename> found in that distribution. +Asegúrese de reiniciar Apache, y ahora tendrá PHP 3 con +soporte para MySQL usando RPM's. Note que probablemente es mucho +más fácil simplemente compilar a partir del tarball de +distribución de PHP 3 y seguir las instrucciones +encontradas en <filename>INSTALL.REDHAT</filename>. </para> </answer> </qandaentry> @@ -268,17 +291,18 @@ <qandaentry id="faq.installation.frontpage"> <question> <para> - Unix: I patched Apache with the FrontPage extensions patch, and - suddenly PHP stopped working. Is PHP incompatible with the - Apache FrontPage extensions? + Unix: He aplicado el parche de extensiones FrontPage a Apache, y + de pronto PHP dejó de funcionar. ¿Es PHP + incompatible con las extensiones FrontPage de Apache? </para> </question> <answer> <para> - No, PHP works fine with the FrontPage extensions. The problem - is that the FrontPage patch modifies several Apache structures, - that PHP relies on. Recompiling PHP (using 'make clean ; make') - after the FP patch is applied would solve the problem. +No, PHP trabaja bien con las extensiones FrontPage. El problema es que +el parche de FrontPage modifica varias estructuras de Apache en las +que depende PHP. Recompilar PHP (usando 'make clean ; make') +después de que se ha aplicado el parche FP debe solucionar el +problema. </para> </answer> </qandaentry> @@ -286,18 +310,20 @@ <qandaentry id="faq.installation.blankscreen"> <question> <para> - Unix/Windows: I have installed PHP, but when I try to - access a PHP script file via my browser, I get a blank screen. + Unix/Windows: He instalado PHP, pero cuando intento acceder a un + script PHP a través de mi navegador, recibo una pantalla + en blanco. </para> </question> <answer> <para> - Do a 'view source' in the web browser and you will probably - find that you can see the source code of your PHP script. - This means that the web server did not send the script to - PHP for interpretation. Something is wrong with the server - configuration - double check the server configuration against - the PHP installation instructions. +Seleccione la acción 'ver código fuente' en el navegador +web y probablemente encontrará el código fuente de su +script PHP. Esto quiere decir que el servidor web no envió el +script a PHP para su interpretación. Algo está mal en la +configuración del servidor - revise cuidadosamente la +configuración del servidor con las instrucciones de +instalación de PHP. </para> </answer> </qandaentry> @@ -305,24 +331,25 @@ <qandaentry id="faq.installation.500error"> <question> <para> - Unix/Windows: I have installed PHP, but when try to - access a PHP script file via my browser, I get a - server 500 error. + Unix/Windows: He instalado PHP, pero cuando intento acceder a un + script PHP a través de mi navegador, recibo un error 500 + de servidor. </para> </question> <answer> <para> - Something went wrong when the server tried to run PHP. To - get to see a sensible error message, from the command line, - change to the directory containing the PHP executable - (<filename>php.exe</filename> on Windows) and run - <literal>php -i</literal>. If PHP has any problems running, - then a suitable error message will be displayed which will - give you a clue as to what needs to be done next. If you - get a screen full of html codes (the output of the - <function>phpinfo</function> function) then PHP is working, - and your problem may be related to your server configuration - which you should double check. +Algo falló cuando el servidor intentó ejecutar PHP. Para +poder ver un mensaje de error más útil, desde la +línea de comandos, vaya al directorio que contiene el +ejecutable PHP (<filename>php.exe</filename> en Windows) y ejecute +<literal>php -i</literal>. Si PHP tiene algún problema +corriendo, entonces se desplegará un mensaje de error +apropiado, el cual le dará una pista sobre lo que debe hacer a +continuación. Si recibe una pantalla llena de códigos +HTML (la salida de la función <function>phpinfo</function>) +entonces PHP está funcionando, y su problema puede estar +relacionado con la configuración de su servidor, la cual debe +revisar de nuevo. </para> </answer> </qandaentry> @@ -330,10 +357,11 @@ <qandaentry id="faq.installation.undefinedsyms"> <question> <para> - Some operating systems: I have installed PHP without errors, - but when I try to start apache I get undefined symbol errors: + Algunos sistemas operativos: He instalado PHP sin errores, pero + cuando intento iniciar apache, recibo errores de símbolos + indefinidos: <programlisting> -[mybox:user /src/php4] root# apachectl configtest +[mi_maquina:usuario /src/php4] root# apachectl configtest apachectl: /usr/local/apache/bin/httpd Undefined symbols: _compress _uncompress @@ -342,9 +370,9 @@ </question> <answer> <para> - This has actually nothing to do with PHP, but with the MySQL - client libraries. Some need --with-zlib, others do not. This - is also covered in the MySQL FAQ. +Esto no tiene nada que ver con PHP en realidad, sino con las +librerías de cliente de MySQL. Algunas necesitan --with-zlib, +otras no. Esto tema también se cubre en el FAQ sobre MySQL. </para> </answer> </qandaentry> @@ -352,8 +380,8 @@ <qandaentry id="faq.installation.cgierror"> <question> <para> - Windows: I have installed PHP, but when I to access - a PHP script file via my browser, I get the error: + Windows: He instalado PHP, pero cuando intento acceder a un + script PHP a través de mi navegador, recibo el error: <programlisting> cgi error: The specified CGI application misbehaved by not @@ -364,42 +392,47 @@ </question> <answer> <para> - This error message means that PHP failed to output anything - at all. To get to see a sensible error message, from the - command line, change to the directory containing the PHP - executable (<filename>php.exe</filename> on Windows) and run - <literal>php -i</literal>. If PHP has any problems running, - then a suitable error message will be displayed which will - give you a clue as to what needs to be done next. If you - get a screen full of html codes (the output of the - <function>phpinfo</function> function) then PHP is working. - </para> - <para> - Once PHP is working at the command line, try accessing the - script via the browser again. If it still fails then it - could be one of the following: +El mensaje de error significa que PHP falló en su intento de +producir una salida. Para poder ver un mensaje de error más +útil, desde la línea de comandos, vaya al directorio que +contiene el ejecutable de PHP (<filename>php.exe</filename> en +Windows) y ejecute +<literal>php -i</literal>. Si PHP tiene algún problema +ejecutándose, entonces se desplegará un mensaje de error +apropiado, el cual le dará una pista sobre lo que necesita +hacer a continuación. Si recibe una pantalla llena de +códigos HTML (la salida de la +función <function>phpinfo</function>) entonces PHP está +funcionando. + </para> + <para> +Una vez PHP esté trabajando desde la línea de comandos, +intente acceder al script desde el navegador nuevamente. Si aun falla, +entonces la causa puede ser alguna de las siguientes: </para> <itemizedlist> <listitem> <simpara> - File permissions on your PHP script, - <filename>php.exe</filename>, <filename>php4ts.dll</filename>, - &php.ini; or any PHP extensions you are trying to load are such - that the anonymous internet user - <literal>ISUR_<machinename></literal> cannot access them. +Los permisos de archivo en su script +PHP, <filename>php.exe</filename>, <filename>php4ts.dll</filename>, +&php.ini; o cualquier extensión PHP que esté tratando +cargar son de tal forma que el usuario anónimo de +internet <literal>ISUR_<nombre_maquina></literal> no tiene +acceso a éstos recursos. </simpara> </listitem> <listitem> <simpara> - The script file does not exist (or possibly isn't where you - think it is relative to your web root directory). Note that - for IIS you can trap this error by ticking the 'check file - exists' box when setting up the script mappings in the - Internet Services Manager. If a script file does not exist - then the server will return a 404 error instead. There is - also the additional benefit that IIS will do any - authentication required for you based on the NTLanMan - permissions on your script file. +El archivo del script no existe (o posiblemente no se encuentra en +donde cree que está, relativo a su directorio web +raíz). Note que para IIS, puede atrapar este error +seleccionando la caja 'check file exists' cuando esté +configurando la gestión de scripts bajo Internet Services +Manager. Si un archivo de script no existe, entonces el servidor +devolverán un error 404 en su lugar. También existe el +beneficio adicional de que IIS se encargará de cualquier +autenticación requerida por usted, basado en los permisos +NTLanMan en su archivo de script. </simpara> </listitem> </itemizedlist> @@ -409,20 +442,22 @@ <qandaentry id="faq.installation.phpandiis"> <question> <para> - Windows: I've followed all the instructions, but still can't - get PHP and IIS to work together! + Windows: He seguido todas las instrucciones, ¡pero aun no + logro que PHP e IIS trabajen juntos! </para> </question> <answer> <para> - Make sure any user who needs to run a PHP script has the rights - to run <filename>php.exe</filename>! IIS uses an anonymous user - which is added at the time IIS is installed. This user needs - rights to <filename>php.exe</filename>. Also, any authenticated - user will also need rights to execute <filename>php.exe</filename>. - And for IIS4 you need to tell it that PHP is a script engine. - Also, you will want to read - <link linkend="faq.installation.forceredirect">this faq</link>. +¡Asegúrese de que cualquier usuario que necesite ejecutar +un script PHP tenga los permisos para +ejecutar <filename>php.exe</filename>! IIS usa un usuario +anónimo que es agregado al momento de instalar IIS. Este +usuario necesita privilegios +sobre <filename>php.exe</filename>. También, cualquier usuario +autenticado necesitará permisos para +ejecutar <filename>php.exe</filename>. Y para IIS4, necesita decirle +que PHP es un motor de scripts. Asi mismo, querrá leer +<link linkend="faq.installation.forceredirect">este faq</link>. </para> </answer> </qandaentry> @@ -430,24 +465,26 @@ <qandaentry id="faq.installation.forceredirect"> <question> <para> - When running PHP as CGI with IIS, PWS, OmniHTTPD or Xitami, - I get the following error: <literal>Security Alert! PHP CGI - cannot be accessed directly.</literal>. +Cuando corro PHP como CGI con IIS, PWS, OmniHTTPD o Xitami, recibo el +siguiente error: <literal>Security Alert! PHP CGI cannot be accessed +directly.</literal>. </para> </question> <answer> <para> - You must set the <link linkend="ini.cgi.force-redirect"> - cgi.force_redirect</link> directive to <literal>0</literal>. - It defaults to <literal>1</literal> so be sure the directive - isn't commented out (with a <literal>;</literal>). Like - all directives, this is set in &php.ini; +Debe definir la directiva <link linkend="ini.cgi.force-redirect"> +cgi.force_redirect</link> como <literal>0</literal>. Su valor +predeterminado es <literal>1</literal>, así que +asegúrese de que la directiva no se encuentre comentada (con +un <literal>;</literal>). Como todas las directivas, ésta se +define en &php.ini; </para> <para> - Because the default is <literal>1</literal>, it's critical - that you're 100% sure that the correct &php.ini; file is being - read. Read <link linkend="faq.installation.findphpini">this faq</link> - for details. +Debido a que su valor predeterminado es <literal>1</literal>, es +importante que esté 100% seguro de que el archivo &php.ini; +correcto está siendo leído. Lea <link +linkend="faq.installation.findphpini">este faq</link> para más +detalles. </para> </answer> </qandaentry> @@ -455,28 +492,31 @@ <qandaentry id="faq.installation.findphpini"> <question> <para> - How do I know if my &php.ini; is being found and read? It - seems like it isn't as my changes aren't being implemented. + +¿Cómo se si mi &php.ini; está siendo encontrado y +leído? Pareciera que mis cambios no están siendo +implementados. </para> </question> <answer> <para> - To be sure your &php.ini; is being read by PHP, make a call to - <function>phpinfo</function> and near the top will be a - listing called <literal>Configuration File (php.ini)</literal>. - This will tell you where PHP is looking for &php.ini; and - whether or not it's being read. If just a directory PATH exists - than it's not being read and you should put your &php.ini; - in that directory. If &php.ini; is included within the PATH than - it is being read. +Para asegurarse de que su &php.ini; está siendo leído +por PHP, haga un llamado a <function>phpinfo</function>, y cerca del +comienzo encontrará un listado llamado <literal>Configuration +File (php.ini)</literal>. Éste le dirá en dónde +está buscando PHP el archivo &php.ini; y si está siendo +leído o no. Si sólo existe un directorio PATH, entonces +no está siendo leído y debe colocar su &php.ini; en ese +directorio. Si &php.ini; es incluido con la ruta PATH, entonces +está siendo leído. </para> <para> - If &php.ini; is being read and you're running PHP as a module - then be sure to restart PHP after making changes to &php.ini; +Si &php.ini; está siendo leido y está ejecutando PHP +como un módulo, entonces asegúrese de reiniciar su +navegador web después de hacer cambios a &php.ini; </para> </answer> </qandaentry> - </qandaset> </chapter> Index: phpdoc-es/reference/strings/functions/localeconv.xml diff -u phpdoc-es/reference/strings/functions/localeconv.xml:1.1 phpdoc-es/reference/strings/functions/localeconv.xml:1.2 --- phpdoc-es/reference/strings/functions/localeconv.xml:1.1 Thu Oct 30 09:54:24 2003 +++ phpdoc-es/reference/strings/functions/localeconv.xml Fri Jan 9 19:21:30 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.68 --> <refentry id="function.localeconv"> <refnamediv> @@ -110,56 +110,56 @@ <row valign="top"> <entry>p_sign_posn</entry> <entry> - <simplelist columns="2" type="horiz"> - <member>0</member> - <member> - Paréntesis rodean la cantidad y currency_symbol</member> - <member>1</member> - <member> - La cadena de signo precede la cantidad y currency_symbol - </member> - <member>2</member> - <member> - La cadena de signo sucede la cantidad y currency_symbol - </member> - <member>3</member> - <member> - La cadena de signo precede inmediatamente currency_symbol - </member> - <member>4</member> - <member> - La cadena de signo sucede inmediatamente currency_symbol - </member> - </simplelist> - </entry> - </row> - <row valign="top"> - <entry>n_sign_posn</entry> - <entry> - <simplelist columns="2" type="horiz"> - <member>0</member> - <member> - Paréntesis rodean la cantidad y currency_symbol - </member> - <member>1</member> - <member> - La cadena de signo precede la cantidad y currency_symbol - </member> - <member>2</member> - <member> - La cadena de signo sucede la cantidad y currency_symbol - </member> - <member>3</member> - <member> - La cadena de signo precede inmediatamente currency_symbol - </member> - <member>4</member> - <member> - La cadena de signo sucede inmediatamente currency_symbol - </member> - </simplelist> - </entry> - </row> + <simplelist columns="2" type="horiz"> + <member>0</member> + <member> + Paréntesis rodean la cantidad y currency_symbol</member> + <member>1</member> + <member> + La cadena de signo precede la cantidad y currency_symbol + </member> + <member>2</member> + <member> + La cadena de signo sucede la cantidad y currency_symbol + </member> + <member>3</member> + <member> + La cadena de signo precede inmediatamente currency_symbol + </member> + <member>4</member> + <member> + La cadena de signo sucede inmediatamente currency_symbol + </member> + </simplelist> + </entry> + </row> + <row valign="top"> + <entry>n_sign_posn</entry> + <entry> + <simplelist columns="2" type="horiz"> + <member>0</member> + <member> + Paréntesis rodean la cantidad y currency_symbol + </member> + <member>1</member> + <member> + La cadena de signo precede la cantidad y currency_symbol + </member> + <member>2</member> + <member> + La cadena de signo sucede la cantidad y currency_symbol + </member> + <member>3</member> + <member> + La cadena de signo precede inmediatamente currency_symbol + </member> + <member>4</member> + <member> + La cadena de signo sucede inmediatamente currency_symbol + </member> + </simplelist> + </entry> + </row> </tbody> </tgroup> </informaltable> @@ -184,7 +184,7 @@ $info_locale = localeconv(); -echo "<PRE>\n"; +echo "<pre>\n"; echo "-------------------------------------------------\n"; echo " Información monetaria para la localidad actual: \n"; echo "-------------------------------------------------\n\n"; @@ -203,7 +203,7 @@ echo "n_sep_by_space: {$info_locale["n_sep_by_space"]}\n"; echo "p_sign_posn: {$info_locale["p_sign_posn"]}\n"; echo "n_sign_posn: {$info_locale["n_sign_posn"]}\n"; -echo "</PRE>\n"; +echo "</pre>\n"; ?> ]]> </programlisting> Index: phpdoc-es/reference/strings/functions/money-format.xml diff -u phpdoc-es/reference/strings/functions/money-format.xml:1.2 phpdoc-es/reference/strings/functions/money-format.xml:1.3 --- phpdoc-es/reference/strings/functions/money-format.xml:1.2 Thu Dec 18 20:59:23 2003 +++ phpdoc-es/reference/strings/functions/money-format.xml Fri Jan 9 19:21:30 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <refentry id="function.money-format"> <refnamediv> <refname>money_format</refname> Index: phpdoc-es/reference/var/functions/print-r.xml diff -u phpdoc-es/reference/var/functions/print-r.xml:1.2 phpdoc-es/reference/var/functions/print-r.xml:1.3 --- phpdoc-es/reference/var/functions/print-r.xml:1.2 Mon Dec 15 23:43:40 2003 +++ phpdoc-es/reference/var/functions/print-r.xml Fri Jan 9 19:21:31 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.5 --> <refentry id="function.print-r"> <refnamediv> @@ -30,6 +30,9 @@ entrega un <type>array</type>, los valores serán presentados en un formato que muestra las claves y los elementos. Una notación parecida es usada para variables tipo <type>object</type>. +<function>print_r</function> y <function>var_export</function> +mostrarán también propiedades protegidas y privadas de +objetos con PHP 5, en contraste con <function>var_dump</function>. </simpara> <simpara> Recuerde que <function>print_r</function> desplazará el Index: phpdoc-es/reference/var/functions/unserialize.xml diff -u phpdoc-es/reference/var/functions/unserialize.xml:1.2 phpdoc-es/reference/var/functions/unserialize.xml:1.3 --- phpdoc-es/reference/var/functions/unserialize.xml:1.2 Mon Dec 15 23:43:40 2003 +++ phpdoc-es/reference/var/functions/unserialize.xml Fri Jan 9 19:21:31 2004 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.2 --> <refentry id="function.unserialize"> <refnamediv> <refname>unserialize</refname> <refpurpose> -Crea un valor PHP a partir de una representación almacenada + Crea un valor PHP a partir de una representación + almacenada </refpurpose> </refnamediv> <refsect1> @@ -14,7 +15,6 @@ <methodsynopsis> <type>mixed</type><methodname>unserialize</methodname> <methodparam><type>string</type><parameter>cadena</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>llamada_de_retorno</parameter></methodparam> </methodsynopsis> <simpara> <function>unserialize</function> toma una variable sencilla seriada @@ -41,12 +41,6 @@ directiva unserialize_callback_func se hizo disponible en PHP 4.2.0. </para> </note> - <note> - <para> - El parámetro <parameter>llamada_de_retorno</parameter> fue - agregado en PHP 4.2.0 - </para> - </note> <para> Si la variable que está siendo convertida de vuelta es un objeto, PHP intentará llamar la función Index: phpdoc-es/reference/var/functions/var-dump.xml diff -u phpdoc-es/reference/var/functions/var-dump.xml:1.2 phpdoc-es/reference/var/functions/var-dump.xml:1.3 --- phpdoc-es/reference/var/functions/var-dump.xml:1.2 Mon Dec 15 23:43:40 2003 +++ phpdoc-es/reference/var/functions/var-dump.xml Fri Jan 9 19:21:31 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.84 --> <refentry id="function.var-dump"> <refnamediv> @@ -18,14 +18,16 @@ <simpara> Esta función despliega información estructurada sobre una o más expresiones que incluye sus tipos y valores. Las -matrices son exploradas recursivamente con valores sangrados para +matrices y los objetos son exploradas recursivamente con valores sangrados para mostrar su estructura. </simpara> - &tip.ob-capture; <simpara> - Compare <function>var_dump</function> con - <function>print_r</function>. +En PHP sólo las propiedades públicas de los objetos +serán devueltas en la salida. <function>var_export</function> +y <function>print_r</function> devolverán también las +propiedadse protegidas y privadas. </simpara> + &tip.ob-capture; <para> <example> <title>Ejemplo de <function>var_dump</function></title> @@ -82,6 +84,10 @@ </screen> </example> </para> + <simpara> + Vea también <function>var_export</function> y + <function>print_r</function>. + </simpara> </refsect1> </refentry> Index: phpdoc-es/reference/var/functions/var-export.xml diff -u phpdoc-es/reference/var/functions/var-export.xml:1.2 phpdoc-es/reference/var/functions/var-export.xml:1.3 --- phpdoc-es/reference/var/functions/var-export.xml:1.2 Mon Dec 15 23:43:40 2003 +++ phpdoc-es/reference/var/functions/var-export.xml Fri Jan 9 19:21:31 2004 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.6 --> <refentry id="function.var-export"> <refnamediv> <refname>var_export</refname> - <refpurpose>Imprime o devuelve la representación de cadena de una variable</refpurpose> + <refpurpose>Imprime o devuelve una representación de cadena, + apta para su procesamiento, de una variable</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> @@ -17,17 +18,15 @@ <simpara> Esta función devuelve información estructurada sobre la variable que le es pasada. Es similar a <function>var_dump</function> -con la excepción de que la represencación devuelta es -código PHP válido. +con dos excepciones. La primera es que la representación +devuelta es código PHP válido, la segunda, que +también devolverá propiedades protegidas y privadas de +un objeto con PHP 5. </simpara> <simpara> También puede devolver la representación de la variable usando &true; como segundo parámetro para esta función. </simpara> - <simpara> - Compare <function>var_export</function> con - <function>var_dump</function>. - </simpara> <para> <informalexample> <programlisting role="php"> @@ -76,6 +75,10 @@ </screen> </informalexample> </para> + <simpara> + Vea también <function>var_dump</function> y + <function>print_r</function>. + </simpara> </refsect1> </refentry> Index: phpdoc-es/security/index.xml diff -u phpdoc-es/security/index.xml:1.7 phpdoc-es/security/index.xml:1.8 --- phpdoc-es/security/index.xml:1.7 Mon Dec 22 01:21:47 2003 +++ phpdoc-es/security/index.xml Fri Jan 9 19:21:32 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.65 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.66 Maintainer: lboshell Status: ready --> <chapter id="security.index"> <title>Seguridad</title> @@ -1088,9 +1088,9 @@ <title>Ataque a Variables con una página HTML personalizada</title> <programlisting role="php"> <![CDATA[ -<form method="POST" action="destino_del_ataque?username=badfoo&password=badfoo"> -<input type="hidden" name="username" value="badfoo"> -<input type="hidden" name="password" value="badfoo"> +<form method="post" action="destino_del_ataque?username=badfoo&password=badfoo"> +<input type="hidden" name="username" value="badfoo" /> +<input type="hidden" name="password" value="badfoo" /> </form> ]]> </programlisting> @@ -1121,10 +1121,10 @@ <title>Explotación de variables comunes de depuración</title> <programlisting role="php"> <![CDATA[ -<form method="POST" action="destino_del_ataque?errors=Y&showerrors=1&debug=1"> -<input type="hidden" name="errors" value="Y"> -<input type="hidden" name="showerrors" value="1"> -<input type="hidden" name="debug" value="1"> +<form method="post" action="destino_del_ataque?errors=Y&showerrors=1&debug=1"> +<input type="hidden" name="errors" value="Y" /> +<input type="hidden" name="showerrors" value="1" /> +<input type="hidden" name="debug" value="1" /> </form> ]]> </programlisting>
Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.112 phpdoc-es/translation.xml:1.113 --- phpdoc-es/translation.xml:1.112 Fri Jan 9 13:59:26 2004 +++ phpdoc-es/translation.xml Fri Jan 9 19:21:24 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.112 $ --> +<!-- $Revision: 1.113 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -45,7 +45,6 @@ <file name="reference/errorfunc/functions/set-error-handler.xml" person="javi" type="review" date="01.12.2003"/> <file name="reference/errorfunc/functions/trigger-error.xml" person="javi" type="review" date="01.12.2003"/> <file name="reference/errorfunc/functions/user-error.xml" person="javi" type="review" date="01.12.2003"/> -<file name="faq/installation.xml" person="lboshell" type="review" date="28.12.2003"/> <file name="faq/languages.xml" person="lboshell" type="review" date="28.12.2003"/> <file name="faq/mailinglist.xml" person="lboshell" type="review" date="28.12.2003"/> </work-in-progress> Index: phpdoc-es/appendices/migration.xml diff -u phpdoc-es/appendices/migration.xml:1.6 phpdoc-es/appendices/migration.xml:1.7 --- phpdoc-es/appendices/migration.xml:1.6 Fri Jan 9 13:59:26 2004 +++ phpdoc-es/appendices/migration.xml Fri Jan 9 19:21:25 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.24 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.25 Maintainer: lboshell Status: ready --> <appendix id="migration"> <title>Migración desde PHP/FI 2 hacia PHP 3</title> @@ -310,7 +310,7 @@ <![CDATA[ $da = fopen($archivo, "r"); if ($da == -1); - echo("No pudo abrirse $archivo para lectura<br>\n"); + echo("No pudo abrirse $archivo para lectura<br />\n"); endif; ]]> </programlisting> @@ -320,7 +320,7 @@ código nuevo</title> <programlisting role="php"> <![CDATA[ -$da = @fopen($archivo, "r") or print("No pudo abrirse $archivo para lectura<br>\n"); +$da = @fopen($archivo, "r") or print("No pudo abrirse $archivo para lectura<br />\n"); ]]> </programlisting> </example> Index: phpdoc-es/faq/installation.xml diff -u phpdoc-es/faq/installation.xml:1.1 phpdoc-es/faq/installation.xml:1.2 --- phpdoc-es/faq/installation.xml:1.1 Sun May 11 18:37:32 2003 +++ phpdoc-es/faq/installation.xml Fri Jan 9 19:21:26 2004 @@ -1,59 +1,66 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.26 Maintainer: lboshell Status: ready --> <chapter id="faq.installation"> - <title>Installation</title> - <titleabbrev>Installation</titleabbrev> + <title>Instalación</title> + <titleabbrev>Instalación</titleabbrev> <para> - This section holds common questions about the way to install - PHP. PHP is available for almost any OS (except maybe for - MacOS before OSX), and almost any web server. +Esta sección contiene preguntas comunes sobre el modo de +instalar PHP. PHP se encuentra disponible para casi cualquier SO +(excepto quizás por MacOS antes de OSX), y casi cualquier +servidor web. </para> <para> - To install PHP, follow the instructions in the - <ulink url="&url.file.installation;">INSTALL</ulink> - file located in the distribution. Windows users should also read the - <ulink url="&url.file.readmewin;">install.txt</ulink> - file. There are also some helpful hints for Windows users - <link linkend="install.windows">here</link>. +Para instalar PHP, siga las instrucciones del archivo <ulink +url="&url.file.installation;">INSTALL</ulink> ubicado en la +distribución. Los usuarios de windows también +deberían leer el archivo <ulink +url="&url.file.readmewin;">install.txt</ulink>. También existen +algunas pistas útiles para usuarios de windows <link +linkend="install.windows">aquí</link>. </para> <qandaset> <qandaentry id="faq.installation.phpini"> <question> <para> - Unix/Windows: Where should my &php.ini; file be - located? + Unix/Windows: ¿En dónde debe estar ubicado mi + archivo &php.ini;? </para> </question> <answer> <para> - By default on UNIX it should be in <filename>/usr/local/lib</filename> - which is <filename><install-path>/lib</filename>. - Most people will want to change this at compile-time with the - <link linkend="install.configure.with-config-file-path">--with-config-file-path</link> - flag. You would, for example, set it with something like: +Por defecto, en Unix debe estar +en <filename>/usr/local/lib</filename>, lo que +es, <filename><ruta-instalacion>/lib</filename>. La +mayoría de personas querrán modificar éste valor +en tiempo de compilación con la bandera <link +linkend="install.configure.with-config-file-path">--with-config-file-path</link>. +Podría, por ejemplo, definirla como: <programlisting> --with-config-file-path=/etc </programlisting> - And then you would copy <filename>php.ini-dist</filename> from - the distribution to <filename>/etc/php.ini</filename> and - edit it to make any local changes you want. +Y luego copiaría <filename>php.ini-dist</filename> desde su +distribución a <filename>/etc/php.ini</filename> y lo +editaría para hacer cualquier modificación local que +desee. </para> <programlisting> --with-config-file-scan-dir=PATH </programlisting> <para> - On Windows the default path for the &php.ini; file is the Windows - directory. If you're using the Apache webserver, &php.ini; is first - searched in the Apaches install directory, e.g. <filename>c:\program - files\apache group\apache</filename>. This way you can have - different &php.ini; files for different versions of Apache on the same - machine. +En windows, la ruta predeterminada para el archivo &php.ini; es el +directorio de windows. Si está usando el servidor web Apache, +&php.ini; será buscado primero en el directorio de +instalación de Apache, p.ej. <filename>c:\program files\apache +group\apache</filename>. De este modo, puede contar con diferentes +archivos &php.ini; para diferentes versiones de Apache en la misma +máquina. </para> <para> - See also the chapter about the <link - linkend="configuration.file">configuration file</link>. +Vea también el capítulo sobre el <link +linkend="configuration.file">archivo de configuración</link>. </para> </answer> </qandaentry> @@ -61,23 +68,26 @@ <qandaentry id="faq.installation.nodata"> <question> <para> - Unix: I installed PHP, but every time I load a document, I get the - message 'Document Contains No Data'! What's going on here? + Unix: Instalé PHP, ¡pero cada vez que cargo un + documento, recibo el mensaje 'Document Contains No Data'! + ¿Qué está pasando aquí? </para> </question> <answer> <para> - This probably means that PHP is having some sort of problem - and is core-dumping. Look in your server error log to see if - this is the case, and then try to reproduce the problem with - a small test case. If you know how to use 'gdb', it is very - helpful when you can provide a backtrace with your bug report - to help the developers pinpoint the problem. If you are using - PHP as an Apache module try something like: +Esto probablemente quiere decir que PHP está sufriendo +algún tipo de dificultad y está produciendo volcados de +memoria. Eche un vistazo a su registro de errores del servidor para +ver si éste es el caso, y luego trate de reproducir el problema +con un pequeño caso de prueba. Si sabe cómo usar 'gdb', +es muy útil cuando puede proveer un backtrace con su reporte de +fallo para ayudar a los desarrolladores a ubicar el problema. Si +está usando PHP como módulo de Apache, intente algo +como: <itemizedlist> <listitem> <para> - Stop your httpd processes +Detener todos sus procesos httpd </para> </listitem> <listitem> @@ -87,48 +97,50 @@ </listitem> <listitem> <para> - Stop your httpd processes +Detener todos sus procesos httpd </para> </listitem> <listitem> <para> - > run -X -f /path/to/httpd.conf + > run -X -f /ruta/hacia/httpd.conf </para> </listitem> <listitem> <para> - Then fetch the URL causing the problem with your browser +Luego recuperar la URL que causa el problema con su navegador </para> </listitem> <listitem> <para> - > run -X -f /path/to/httpd.conf + > run -X -f /ruta/hacia/httpd.conf </para> </listitem> <listitem> <para> - If you are getting a core dump, gdb should inform you of this now +Si está recibiendo un volcado de memoria, gdb debe informarle +de ésto. </para> </listitem> <listitem> <para> - type: bt + escriba: bt </para> </listitem> <listitem> <para> - You should include your backtrace in your bug report. This should be submitted to - <ulink url="&url.php.bugs;">&url.php.bugs;</ulink> +Ahora debe incluir su backtrace en su reporte de fallo. Éste +debe ser enviado desde <ulink +url="&url.php.bugs;">&url.php.bugs;</ulink> </para> </listitem> </itemizedlist> </para> <para> - If your script uses the regular expression functions - (<function>ereg</function> and friends), you should make sure - that you compiled PHP and Apache with the same regular - expression package. This should happen automatically with - PHP and Apache 1.3.x +Si su script usa las funciones de expresiones regulares +(<function>ereg</function> y amigas), debe asegurarse de que +compiló PHP y Apache con el mismo paquete de expresiones +regulares. Esto debe pasar automáticamente con PHP y Apache +1.3.x </para> </answer> </qandaentry> @@ -136,15 +148,16 @@ <qandaentry id="faq.installation.processing"> <question> <para> - Unix: I installed PHP using RPMS, but Apache isn't processing the - PHP pages! What's going on here? + Unix: Instalé PHP usando RPMS, ¡pero Apache no + está procesando las páginas PHP¡ + ¿Qué está pasando aquí? </para> </question> <answer> <para> - Assuming you installed both Apache and PHP from RPM packages, - you need to uncomment or add some or all of the following lines - in your &httpd.conf; file: +Asumiendo que ha instalado tanto Apache como PHP desde paquetes RPM, +necesita remover los caracteres de comentario, o agregar algunas o +todas de las siguientes líneas en su archivo &httpd.conf;: <programlisting> # Extra Modules AddModule mod_php.c @@ -153,17 +166,17 @@ # Extra Modules LoadModule php_module modules/mod_php.so -LoadModule php3_module modules/libphp3.so /* for PHP 3 */ -LoadModule php4_module modules/libphp4.so /* for PHP 4 */ +LoadModule php3_module modules/libphp3.so /* para PHP 3 */ +LoadModule php4_module modules/libphp4.so /* para PHP 4 */ LoadModule perl_module modules/libperl.so </programlisting> - And add: + Y agregar: <programlisting> -AddType application/x-httpd-php3 .php3 /* for PHP 3 */ -AddType application/x-httpd-php .php /* for PHP 4 */ +AddType application/x-httpd-php3 .php3 /* para PHP 3 */ +AddType application/x-httpd-php .php /* para PHP 4 */ </programlisting> - ... to the global properties, or to the properties of the - VirtualDomain you want to have PHP support added to. +... a las propiedades globales, o a las propiedades del VirtualDomain +para el cual desea tener soporte de PHP. </para> </answer> </qandaentry> @@ -171,37 +184,42 @@ <qandaentry id="faq.installation.compile"> <question> <para> - Unix: I installed PHP 3 using RPMS, but it doesn't compile with - the database support I need! What's going on here? + Unix: Instalé PHP 3 usando RPMS, ¡pero no compila + con el soporte de bases de datos que necesito! + ¿Qué está pasando? </para> </question> <answer> <para> - Due to the way PHP 3 built, it is not easy to build a - complete flexible PHP RPM. This issue is addressed in PHP 4. - For PHP 3, we currently suggest you use the mechanism described in the - INSTALL.REDHAT file in the PHP distribution. If you insist on using - an RPM version of PHP 3, read on... +Debido a la forma en que se compila PHP 3, no es sencillo crear un RPM +de PHP flexible completo. Este problema es atendido en PHP 4. Para PHP +3, actualmente le sugerimos que use el mecanismo descrito en el +archivo INSTALL.REDHAT en la distribución de PHP. Si insiste en +usar una versión RPM para PHP 3, continúe leyendo... </para> <para> - The RPM packagers are setting up the RPMS to install - without database support to simplify installations <emphasis>and</emphasis> - because RPMS use /usr/ instead of the standard /usr/local/ directory for - files. You need to tell the RPM spec file which databases to support - and the location of the top-level of your database server. +Los empaquetadores de RPM están configurando los RPMS para ser +instalados sin soporte de bases de datos para simplificar las +instalaciones <emphasis>y</emphasis> porque los RPMS usan /usr/ en +lugar del directorio /usr/local/ estándar para los +archivos. Usted necesita decirle al archivo spec del RPM cuáles +bases de datos soportar y la ubicación del nivel más +alto de su servidor de bases de datos. </para> <para> - This example will explain the process of adding support for the - popular MySQL database server, using the mod installation for Apache. +Este ejemplo explicará el proceso de agregar soporte para el +popular servidor de bases de datos MySQL, usando la instalación +de módulo para Apache. </para> <para> - Of course all of this information can be adjusted for any database - server that PHP supports. We will assume you installed MySQL and Apache - completely with RPMS for this example as well. +Por supuesto, toda esta información puede ser ajustada para +cualquier servidor de bases de datos soportada por PHP. Asumiremos que +ha instalado MySQL y Apache completamente con RPMS para este ejemplo +también. <itemizedlist> <listitem> - <para> - First remove mod_php3 : + <para> + Primero remueva mod_php3 : <programlisting> rpm -e mod_php3 </programlisting> @@ -209,7 +227,8 @@ </listitem> <listitem> <para> - Then get the source rpm and INSTALL it, NOT --rebuild + Luego obtenga el rpm fuente e INSTÁLELO, NO + use --rebuild <programlisting> rpm -Uvh mod_php3-3.0.5-2.src.rpm </programlisting> @@ -217,17 +236,19 @@ </listitem> <listitem> <para> - Then edit the <filename>/usr/src/redhat/SPECS/mod_php3.spec</filename> file + Luego edite el + archivo <filename>/usr/src/redhat/SPECS/mod_php3.spec</filename> </para> <para> - In the %build section add the database support you want, and the path. + En la sección %build agrege el soporte de bases de + datos que desea, y la ruta. </para> <para> - For MySQL you would add + Para MySQL, usted agregaría <programlisting> --with-mysql=/usr \ </programlisting> - The %build section will look something like this: + La sección %build se verá algo como: <programlisting> ./configure --prefix=/usr \ --with-apxs=/usr/sbin/apxs \ @@ -242,7 +263,8 @@ </listitem> <listitem> <para> - Once this modification is made then build the binary rpm as follows: +Una vez está hecha esta modificación, compile el rpm +binario de este modo: <programlisting> rpm -bb /usr/src/redhat/SPECS/mod_php3.spec </programlisting> @@ -250,17 +272,18 @@ </listitem> <listitem> <para> - Then install the rpm + Luego instale el rpm <programlisting> rpm -ivh /usr/src/redhat/RPMS/i386/mod_php3-3.0.5-2.i386.rpm </programlisting> </para> </listitem> </itemizedlist> - Make sure you restart Apache, and you now have PHP 3 with MySQL support - using RPM's. Note that it is probably much easier to just build - from the distribution tarball of PHP 3 and follow the instructions in - <filename>INSTALL.REDHAT</filename> found in that distribution. +Asegúrese de reiniciar Apache, y ahora tendrá PHP 3 con +soporte para MySQL usando RPM's. Note que probablemente es mucho +más fácil simplemente compilar a partir del tarball de +distribución de PHP 3 y seguir las instrucciones +encontradas en <filename>INSTALL.REDHAT</filename>. </para> </answer> </qandaentry> @@ -268,17 +291,18 @@ <qandaentry id="faq.installation.frontpage"> <question> <para> - Unix: I patched Apache with the FrontPage extensions patch, and - suddenly PHP stopped working. Is PHP incompatible with the - Apache FrontPage extensions? + Unix: He aplicado el parche de extensiones FrontPage a Apache, y + de pronto PHP dejó de funcionar. ¿Es PHP + incompatible con las extensiones FrontPage de Apache? </para> </question> <answer> <para> - No, PHP works fine with the FrontPage extensions. The problem - is that the FrontPage patch modifies several Apache structures, - that PHP relies on. Recompiling PHP (using 'make clean ; make') - after the FP patch is applied would solve the problem. +No, PHP trabaja bien con las extensiones FrontPage. El problema es que +el parche de FrontPage modifica varias estructuras de Apache en las +que depende PHP. Recompilar PHP (usando 'make clean ; make') +después de que se ha aplicado el parche FP debe solucionar el +problema. </para> </answer> </qandaentry> @@ -286,18 +310,20 @@ <qandaentry id="faq.installation.blankscreen"> <question> <para> - Unix/Windows: I have installed PHP, but when I try to - access a PHP script file via my browser, I get a blank screen. + Unix/Windows: He instalado PHP, pero cuando intento acceder a un + script PHP a través de mi navegador, recibo una pantalla + en blanco. </para> </question> <answer> <para> - Do a 'view source' in the web browser and you will probably - find that you can see the source code of your PHP script. - This means that the web server did not send the script to - PHP for interpretation. Something is wrong with the server - configuration - double check the server configuration against - the PHP installation instructions. +Seleccione la acción 'ver código fuente' en el navegador +web y probablemente encontrará el código fuente de su +script PHP. Esto quiere decir que el servidor web no envió el +script a PHP para su interpretación. Algo está mal en la +configuración del servidor - revise cuidadosamente la +configuración del servidor con las instrucciones de +instalación de PHP. </para> </answer> </qandaentry> @@ -305,24 +331,25 @@ <qandaentry id="faq.installation.500error"> <question> <para> - Unix/Windows: I have installed PHP, but when try to - access a PHP script file via my browser, I get a - server 500 error. + Unix/Windows: He instalado PHP, pero cuando intento acceder a un + script PHP a través de mi navegador, recibo un error 500 + de servidor. </para> </question> <answer> <para> - Something went wrong when the server tried to run PHP. To - get to see a sensible error message, from the command line, - change to the directory containing the PHP executable - (<filename>php.exe</filename> on Windows) and run - <literal>php -i</literal>. If PHP has any problems running, - then a suitable error message will be displayed which will - give you a clue as to what needs to be done next. If you - get a screen full of html codes (the output of the - <function>phpinfo</function> function) then PHP is working, - and your problem may be related to your server configuration - which you should double check. +Algo falló cuando el servidor intentó ejecutar PHP. Para +poder ver un mensaje de error más útil, desde la +línea de comandos, vaya al directorio que contiene el +ejecutable PHP (<filename>php.exe</filename> en Windows) y ejecute +<literal>php -i</literal>. Si PHP tiene algún problema +corriendo, entonces se desplegará un mensaje de error +apropiado, el cual le dará una pista sobre lo que debe hacer a +continuación. Si recibe una pantalla llena de códigos +HTML (la salida de la función <function>phpinfo</function>) +entonces PHP está funcionando, y su problema puede estar +relacionado con la configuración de su servidor, la cual debe +revisar de nuevo. </para> </answer> </qandaentry> @@ -330,10 +357,11 @@ <qandaentry id="faq.installation.undefinedsyms"> <question> <para> - Some operating systems: I have installed PHP without errors, - but when I try to start apache I get undefined symbol errors: + Algunos sistemas operativos: He instalado PHP sin errores, pero + cuando intento iniciar apache, recibo errores de símbolos + indefinidos: <programlisting> -[mybox:user /src/php4] root# apachectl configtest +[mi_maquina:usuario /src/php4] root# apachectl configtest apachectl: /usr/local/apache/bin/httpd Undefined symbols: _compress _uncompress @@ -342,9 +370,9 @@ </question> <answer> <para> - This has actually nothing to do with PHP, but with the MySQL - client libraries. Some need --with-zlib, others do not. This - is also covered in the MySQL FAQ. +Esto no tiene nada que ver con PHP en realidad, sino con las +librerías de cliente de MySQL. Algunas necesitan --with-zlib, +otras no. Esto tema también se cubre en el FAQ sobre MySQL. </para> </answer> </qandaentry> @@ -352,8 +380,8 @@ <qandaentry id="faq.installation.cgierror"> <question> <para> - Windows: I have installed PHP, but when I to access - a PHP script file via my browser, I get the error: + Windows: He instalado PHP, pero cuando intento acceder a un + script PHP a través de mi navegador, recibo el error: <programlisting> cgi error: The specified CGI application misbehaved by not @@ -364,42 +392,47 @@ </question> <answer> <para> - This error message means that PHP failed to output anything - at all. To get to see a sensible error message, from the - command line, change to the directory containing the PHP - executable (<filename>php.exe</filename> on Windows) and run - <literal>php -i</literal>. If PHP has any problems running, - then a suitable error message will be displayed which will - give you a clue as to what needs to be done next. If you - get a screen full of html codes (the output of the - <function>phpinfo</function> function) then PHP is working. - </para> - <para> - Once PHP is working at the command line, try accessing the - script via the browser again. If it still fails then it - could be one of the following: +El mensaje de error significa que PHP falló en su intento de +producir una salida. Para poder ver un mensaje de error más +útil, desde la línea de comandos, vaya al directorio que +contiene el ejecutable de PHP (<filename>php.exe</filename> en +Windows) y ejecute +<literal>php -i</literal>. Si PHP tiene algún problema +ejecutándose, entonces se desplegará un mensaje de error +apropiado, el cual le dará una pista sobre lo que necesita +hacer a continuación. Si recibe una pantalla llena de +códigos HTML (la salida de la +función <function>phpinfo</function>) entonces PHP está +funcionando. + </para> + <para> +Una vez PHP esté trabajando desde la línea de comandos, +intente acceder al script desde el navegador nuevamente. Si aun falla, +entonces la causa puede ser alguna de las siguientes: </para> <itemizedlist> <listitem> <simpara> - File permissions on your PHP script, - <filename>php.exe</filename>, <filename>php4ts.dll</filename>, - &php.ini; or any PHP extensions you are trying to load are such - that the anonymous internet user - <literal>ISUR_<machinename></literal> cannot access them. +Los permisos de archivo en su script +PHP, <filename>php.exe</filename>, <filename>php4ts.dll</filename>, +&php.ini; o cualquier extensión PHP que esté tratando +cargar son de tal forma que el usuario anónimo de +internet <literal>ISUR_<nombre_maquina></literal> no tiene +acceso a éstos recursos. </simpara> </listitem> <listitem> <simpara> - The script file does not exist (or possibly isn't where you - think it is relative to your web root directory). Note that - for IIS you can trap this error by ticking the 'check file - exists' box when setting up the script mappings in the - Internet Services Manager. If a script file does not exist - then the server will return a 404 error instead. There is - also the additional benefit that IIS will do any - authentication required for you based on the NTLanMan - permissions on your script file. +El archivo del script no existe (o posiblemente no se encuentra en +donde cree que está, relativo a su directorio web +raíz). Note que para IIS, puede atrapar este error +seleccionando la caja 'check file exists' cuando esté +configurando la gestión de scripts bajo Internet Services +Manager. Si un archivo de script no existe, entonces el servidor +devolverán un error 404 en su lugar. También existe el +beneficio adicional de que IIS se encargará de cualquier +autenticación requerida por usted, basado en los permisos +NTLanMan en su archivo de script. </simpara> </listitem> </itemizedlist> @@ -409,20 +442,22 @@ <qandaentry id="faq.installation.phpandiis"> <question> <para> - Windows: I've followed all the instructions, but still can't - get PHP and IIS to work together! + Windows: He seguido todas las instrucciones, ¡pero aun no + logro que PHP e IIS trabajen juntos! </para> </question> <answer> <para> - Make sure any user who needs to run a PHP script has the rights - to run <filename>php.exe</filename>! IIS uses an anonymous user - which is added at the time IIS is installed. This user needs - rights to <filename>php.exe</filename>. Also, any authenticated - user will also need rights to execute <filename>php.exe</filename>. - And for IIS4 you need to tell it that PHP is a script engine. - Also, you will want to read - <link linkend="faq.installation.forceredirect">this faq</link>. +¡Asegúrese de que cualquier usuario que necesite ejecutar +un script PHP tenga los permisos para +ejecutar <filename>php.exe</filename>! IIS usa un usuario +anónimo que es agregado al momento de instalar IIS. Este +usuario necesita privilegios +sobre <filename>php.exe</filename>. También, cualquier usuario +autenticado necesitará permisos para +ejecutar <filename>php.exe</filename>. Y para IIS4, necesita decirle +que PHP es un motor de scripts. Asi mismo, querrá leer +<link linkend="faq.installation.forceredirect">este faq</link>. </para> </answer> </qandaentry> @@ -430,24 +465,26 @@ <qandaentry id="faq.installation.forceredirect"> <question> <para> - When running PHP as CGI with IIS, PWS, OmniHTTPD or Xitami, - I get the following error: <literal>Security Alert! PHP CGI - cannot be accessed directly.</literal>. +Cuando corro PHP como CGI con IIS, PWS, OmniHTTPD o Xitami, recibo el +siguiente error: <literal>Security Alert! PHP CGI cannot be accessed +directly.</literal>. </para> </question> <answer> <para> - You must set the <link linkend="ini.cgi.force-redirect"> - cgi.force_redirect</link> directive to <literal>0</literal>. - It defaults to <literal>1</literal> so be sure the directive - isn't commented out (with a <literal>;</literal>). Like - all directives, this is set in &php.ini; +Debe definir la directiva <link linkend="ini.cgi.force-redirect"> +cgi.force_redirect</link> como <literal>0</literal>. Su valor +predeterminado es <literal>1</literal>, así que +asegúrese de que la directiva no se encuentre comentada (con +un <literal>;</literal>). Como todas las directivas, ésta se +define en &php.ini; </para> <para> - Because the default is <literal>1</literal>, it's critical - that you're 100% sure that the correct &php.ini; file is being - read. Read <link linkend="faq.installation.findphpini">this faq</link> - for details. +Debido a que su valor predeterminado es <literal>1</literal>, es +importante que esté 100% seguro de que el archivo &php.ini; +correcto está siendo leído. Lea <link +linkend="faq.installation.findphpini">este faq</link> para más +detalles. </para> </answer> </qandaentry> @@ -455,28 +492,31 @@ <qandaentry id="faq.installation.findphpini"> <question> <para> - How do I know if my &php.ini; is being found and read? It - seems like it isn't as my changes aren't being implemented. + +¿Cómo se si mi &php.ini; está siendo encontrado y +leído? Pareciera que mis cambios no están siendo +implementados. </para> </question> <answer> <para> - To be sure your &php.ini; is being read by PHP, make a call to - <function>phpinfo</function> and near the top will be a - listing called <literal>Configuration File (php.ini)</literal>. - This will tell you where PHP is looking for &php.ini; and - whether or not it's being read. If just a directory PATH exists - than it's not being read and you should put your &php.ini; - in that directory. If &php.ini; is included within the PATH than - it is being read. +Para asegurarse de que su &php.ini; está siendo leído +por PHP, haga un llamado a <function>phpinfo</function>, y cerca del +comienzo encontrará un listado llamado <literal>Configuration +File (php.ini)</literal>. Éste le dirá en dónde +está buscando PHP el archivo &php.ini; y si está siendo +leído o no. Si sólo existe un directorio PATH, entonces +no está siendo leído y debe colocar su &php.ini; en ese +directorio. Si &php.ini; es incluido con la ruta PATH, entonces +está siendo leído. </para> <para> - If &php.ini; is being read and you're running PHP as a module - then be sure to restart PHP after making changes to &php.ini; +Si &php.ini; está siendo leido y está ejecutando PHP +como un módulo, entonces asegúrese de reiniciar su +navegador web después de hacer cambios a &php.ini; </para> </answer> </qandaentry> - </qandaset> </chapter> Index: phpdoc-es/reference/strings/functions/localeconv.xml diff -u phpdoc-es/reference/strings/functions/localeconv.xml:1.1 phpdoc-es/reference/strings/functions/localeconv.xml:1.2 --- phpdoc-es/reference/strings/functions/localeconv.xml:1.1 Thu Oct 30 09:54:24 2003 +++ phpdoc-es/reference/strings/functions/localeconv.xml Fri Jan 9 19:21:30 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.68 --> <refentry id="function.localeconv"> <refnamediv> @@ -110,56 +110,56 @@ <row valign="top"> <entry>p_sign_posn</entry> <entry> - <simplelist columns="2" type="horiz"> - <member>0</member> - <member> - Paréntesis rodean la cantidad y currency_symbol</member> - <member>1</member> - <member> - La cadena de signo precede la cantidad y currency_symbol - </member> - <member>2</member> - <member> - La cadena de signo sucede la cantidad y currency_symbol - </member> - <member>3</member> - <member> - La cadena de signo precede inmediatamente currency_symbol - </member> - <member>4</member> - <member> - La cadena de signo sucede inmediatamente currency_symbol - </member> - </simplelist> - </entry> - </row> - <row valign="top"> - <entry>n_sign_posn</entry> - <entry> - <simplelist columns="2" type="horiz"> - <member>0</member> - <member> - Paréntesis rodean la cantidad y currency_symbol - </member> - <member>1</member> - <member> - La cadena de signo precede la cantidad y currency_symbol - </member> - <member>2</member> - <member> - La cadena de signo sucede la cantidad y currency_symbol - </member> - <member>3</member> - <member> - La cadena de signo precede inmediatamente currency_symbol - </member> - <member>4</member> - <member> - La cadena de signo sucede inmediatamente currency_symbol - </member> - </simplelist> - </entry> - </row> + <simplelist columns="2" type="horiz"> + <member>0</member> + <member> + Paréntesis rodean la cantidad y currency_symbol</member> + <member>1</member> + <member> + La cadena de signo precede la cantidad y currency_symbol + </member> + <member>2</member> + <member> + La cadena de signo sucede la cantidad y currency_symbol + </member> + <member>3</member> + <member> + La cadena de signo precede inmediatamente currency_symbol + </member> + <member>4</member> + <member> + La cadena de signo sucede inmediatamente currency_symbol + </member> + </simplelist> + </entry> + </row> + <row valign="top"> + <entry>n_sign_posn</entry> + <entry> + <simplelist columns="2" type="horiz"> + <member>0</member> + <member> + Paréntesis rodean la cantidad y currency_symbol + </member> + <member>1</member> + <member> + La cadena de signo precede la cantidad y currency_symbol + </member> + <member>2</member> + <member> + La cadena de signo sucede la cantidad y currency_symbol + </member> + <member>3</member> + <member> + La cadena de signo precede inmediatamente currency_symbol + </member> + <member>4</member> + <member> + La cadena de signo sucede inmediatamente currency_symbol + </member> + </simplelist> + </entry> + </row> </tbody> </tgroup> </informaltable> @@ -184,7 +184,7 @@ $info_locale = localeconv(); -echo "<PRE>\n"; +echo "<pre>\n"; echo "-------------------------------------------------\n"; echo " Información monetaria para la localidad actual: \n"; echo "-------------------------------------------------\n\n"; @@ -203,7 +203,7 @@ echo "n_sep_by_space: {$info_locale["n_sep_by_space"]}\n"; echo "p_sign_posn: {$info_locale["p_sign_posn"]}\n"; echo "n_sign_posn: {$info_locale["n_sign_posn"]}\n"; -echo "</PRE>\n"; +echo "</pre>\n"; ?> ]]> </programlisting> Index: phpdoc-es/reference/strings/functions/money-format.xml diff -u phpdoc-es/reference/strings/functions/money-format.xml:1.2 phpdoc-es/reference/strings/functions/money-format.xml:1.3 --- phpdoc-es/reference/strings/functions/money-format.xml:1.2 Thu Dec 18 20:59:23 2003 +++ phpdoc-es/reference/strings/functions/money-format.xml Fri Jan 9 19:21:30 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <refentry id="function.money-format"> <refnamediv> <refname>money_format</refname> Index: phpdoc-es/reference/var/functions/print-r.xml diff -u phpdoc-es/reference/var/functions/print-r.xml:1.2 phpdoc-es/reference/var/functions/print-r.xml:1.3 --- phpdoc-es/reference/var/functions/print-r.xml:1.2 Mon Dec 15 23:43:40 2003 +++ phpdoc-es/reference/var/functions/print-r.xml Fri Jan 9 19:21:31 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.5 --> <refentry id="function.print-r"> <refnamediv> @@ -30,6 +30,9 @@ entrega un <type>array</type>, los valores serán presentados en un formato que muestra las claves y los elementos. Una notación parecida es usada para variables tipo <type>object</type>. +<function>print_r</function> y <function>var_export</function> +mostrarán también propiedades protegidas y privadas de +objetos con PHP 5, en contraste con <function>var_dump</function>. </simpara> <simpara> Recuerde que <function>print_r</function> desplazará el Index: phpdoc-es/reference/var/functions/unserialize.xml diff -u phpdoc-es/reference/var/functions/unserialize.xml:1.2 phpdoc-es/reference/var/functions/unserialize.xml:1.3 --- phpdoc-es/reference/var/functions/unserialize.xml:1.2 Mon Dec 15 23:43:40 2003 +++ phpdoc-es/reference/var/functions/unserialize.xml Fri Jan 9 19:21:31 2004 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.2 --> <refentry id="function.unserialize"> <refnamediv> <refname>unserialize</refname> <refpurpose> -Crea un valor PHP a partir de una representación almacenada + Crea un valor PHP a partir de una representación + almacenada </refpurpose> </refnamediv> <refsect1> @@ -14,7 +15,6 @@ <methodsynopsis> <type>mixed</type><methodname>unserialize</methodname> <methodparam><type>string</type><parameter>cadena</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>llamada_de_retorno</parameter></methodparam> </methodsynopsis> <simpara> <function>unserialize</function> toma una variable sencilla seriada @@ -41,12 +41,6 @@ directiva unserialize_callback_func se hizo disponible en PHP 4.2.0. </para> </note> - <note> - <para> - El parámetro <parameter>llamada_de_retorno</parameter> fue - agregado en PHP 4.2.0 - </para> - </note> <para> Si la variable que está siendo convertida de vuelta es un objeto, PHP intentará llamar la función Index: phpdoc-es/reference/var/functions/var-dump.xml diff -u phpdoc-es/reference/var/functions/var-dump.xml:1.2 phpdoc-es/reference/var/functions/var-dump.xml:1.3 --- phpdoc-es/reference/var/functions/var-dump.xml:1.2 Mon Dec 15 23:43:40 2003 +++ phpdoc-es/reference/var/functions/var-dump.xml Fri Jan 9 19:21:31 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.84 --> <refentry id="function.var-dump"> <refnamediv> @@ -18,14 +18,16 @@ <simpara> Esta función despliega información estructurada sobre una o más expresiones que incluye sus tipos y valores. Las -matrices son exploradas recursivamente con valores sangrados para +matrices y los objetos son exploradas recursivamente con valores sangrados para mostrar su estructura. </simpara> - &tip.ob-capture; <simpara> - Compare <function>var_dump</function> con - <function>print_r</function>. +En PHP sólo las propiedades públicas de los objetos +serán devueltas en la salida. <function>var_export</function> +y <function>print_r</function> devolverán también las +propiedadse protegidas y privadas. </simpara> + &tip.ob-capture; <para> <example> <title>Ejemplo de <function>var_dump</function></title> @@ -82,6 +84,10 @@ </screen> </example> </para> + <simpara> + Vea también <function>var_export</function> y + <function>print_r</function>. + </simpara> </refsect1> </refentry> Index: phpdoc-es/reference/var/functions/var-export.xml diff -u phpdoc-es/reference/var/functions/var-export.xml:1.2 phpdoc-es/reference/var/functions/var-export.xml:1.3 --- phpdoc-es/reference/var/functions/var-export.xml:1.2 Mon Dec 15 23:43:40 2003 +++ phpdoc-es/reference/var/functions/var-export.xml Fri Jan 9 19:21:31 2004 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.6 --> <refentry id="function.var-export"> <refnamediv> <refname>var_export</refname> - <refpurpose>Imprime o devuelve la representación de cadena de una variable</refpurpose> + <refpurpose>Imprime o devuelve una representación de cadena, + apta para su procesamiento, de una variable</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> @@ -17,17 +18,15 @@ <simpara> Esta función devuelve información estructurada sobre la variable que le es pasada. Es similar a <function>var_dump</function> -con la excepción de que la represencación devuelta es -código PHP válido. +con dos excepciones. La primera es que la representación +devuelta es código PHP válido, la segunda, que +también devolverá propiedades protegidas y privadas de +un objeto con PHP 5. </simpara> <simpara> También puede devolver la representación de la variable usando &true; como segundo parámetro para esta función. </simpara> - <simpara> - Compare <function>var_export</function> con - <function>var_dump</function>. - </simpara> <para> <informalexample> <programlisting role="php"> @@ -76,6 +75,10 @@ </screen> </informalexample> </para> + <simpara> + Vea también <function>var_dump</function> y + <function>print_r</function>. + </simpara> </refsect1> </refentry> Index: phpdoc-es/security/index.xml diff -u phpdoc-es/security/index.xml:1.7 phpdoc-es/security/index.xml:1.8 --- phpdoc-es/security/index.xml:1.7 Mon Dec 22 01:21:47 2003 +++ phpdoc-es/security/index.xml Fri Jan 9 19:21:32 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.65 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.66 Maintainer: lboshell Status: ready --> <chapter id="security.index"> <title>Seguridad</title> @@ -1088,9 +1088,9 @@ <title>Ataque a Variables con una página HTML personalizada</title> <programlisting role="php"> <![CDATA[ -<form method="POST" action="destino_del_ataque?username=badfoo&password=badfoo"> -<input type="hidden" name="username" value="badfoo"> -<input type="hidden" name="password" value="badfoo"> +<form method="post" action="destino_del_ataque?username=badfoo&password=badfoo"> +<input type="hidden" name="username" value="badfoo" /> +<input type="hidden" name="password" value="badfoo" /> </form> ]]> </programlisting> @@ -1121,10 +1121,10 @@ <title>Explotación de variables comunes de depuración</title> <programlisting role="php"> <![CDATA[ -<form method="POST" action="destino_del_ataque?errors=Y&showerrors=1&debug=1"> -<input type="hidden" name="errors" value="Y"> -<input type="hidden" name="showerrors" value="1"> -<input type="hidden" name="debug" value="1"> +<form method="post" action="destino_del_ataque?errors=Y&showerrors=1&debug=1"> +<input type="hidden" name="errors" value="Y" /> +<input type="hidden" name="showerrors" value="1" /> +<input type="hidden" name="debug" value="1" /> </form> ]]> </programlisting>