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: 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&oacute;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&oacute;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&oacute;n</title> + <titleabbrev>Instalaci&oacute;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&oacute;n contiene preguntas comunes sobre el modo de +instalar PHP. PHP se encuentra disponible para casi cualquier SO +(excepto quiz&aacute;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&oacute;n. Los usuarios de windows tambi&eacute;n +deber&iacute;an leer el archivo <ulink +url="&url.file.readmewin;">install.txt</ulink>. Tambi&eacute;n existen +algunas pistas &uacute;tiles para usuarios de windows <link +linkend="install.windows">aqu&iacute;</link>. </para> <qandaset> <qandaentry id="faq.installation.phpini"> <question> <para> - Unix/Windows: Where should my &php.ini; file be - located? + Unix/Windows: &iquest;En d&oacute;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>&lt;install-path&gt;/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>&lt;ruta-instalacion&gt;/lib</filename>. La +mayor&iacute;a de personas querr&aacute;n modificar &eacute;ste valor +en tiempo de compilaci&oacute;n con la bandera <link +linkend="install.configure.with-config-file-path">--with-config-file-path</link>. +Podr&iacute;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&iacute;a <filename>php.ini-dist</filename> desde su +distribuci&oacute;n a <filename>/etc/php.ini</filename> y lo +editar&iacute;a para hacer cualquier modificaci&oacute;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&aacute; usando el servidor web Apache, +&php.ini; ser&aacute; buscado primero en el directorio de +instalaci&oacute;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&aacute;quina. </para> <para> - See also the chapter about the <link - linkend="configuration.file">configuration file</link>. +Vea tambi&eacute;n el cap&iacute;tulo sobre el <link +linkend="configuration.file">archivo de configuraci&oacute;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&eacute; PHP, &iexcl;pero cada vez que cargo un + documento, recibo el mensaje 'Document Contains No Data'! + &iquest;Qu&eacute; est&aacute; pasando aqu&iacute;? </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&aacute; sufriendo +alg&uacute;n tipo de dificultad y est&aacute; produciendo volcados de +memoria. Eche un vistazo a su registro de errores del servidor para +ver si &eacute;ste es el caso, y luego trate de reproducir el problema +con un peque&ntilde;o caso de prueba. Si sabe c&oacute;mo usar 'gdb', +es muy &uacute;til cuando puede proveer un backtrace con su reporte de +fallo para ayudar a los desarrolladores a ubicar el problema. Si +est&aacute; usando PHP como m&oacute;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> - &gt; run -X -f /path/to/httpd.conf + &gt; 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> - &gt; run -X -f /path/to/httpd.conf + &gt; 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&aacute; recibiendo un volcado de memoria, gdb debe informarle +de &eacute;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. &Eacute;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&oacute; PHP y Apache con el mismo paquete de expresiones +regulares. Esto debe pasar autom&aacute;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&eacute; PHP usando RPMS, &iexcl;pero Apache no + est&aacute; procesando las p&aacute;ginas PHP&iexcl; + &iquest;Qu&eacute; est&aacute; pasando aqu&iacute;? </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&iacute;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&eacute; PHP 3 usando RPMS, &iexcl;pero no compila + con el soporte de bases de datos que necesito! + &iquest;Qu&eacute; est&aacute; 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&oacute;n de PHP. Si insiste en +usar una versi&oacute;n RPM para PHP 3, contin&uacute;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&aacute;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&aacute;ndar para los +archivos. Usted necesita decirle al archivo spec del RPM cu&aacute;les +bases de datos soportar y la ubicaci&oacute;n del nivel m&aacute;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&aacute; el proceso de agregar soporte para el +popular servidor de bases de datos MySQL, usando la instalaci&oacute;n +de m&oacute;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&oacute;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&eacute;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&Aacute;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&oacute;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&iacute;a <programlisting> --with-mysql=/usr \ </programlisting> - The %build section will look something like this: + La secci&oacute;n %build se ver&aacute; 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&aacute; hecha esta modificaci&oacute;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&uacute;rese de reiniciar Apache, y ahora tendr&aacute; PHP 3 con +soporte para MySQL usando RPM's. Note que probablemente es mucho +m&aacute;s f&aacute;cil simplemente compilar a partir del tarball de +distribuci&oacute;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&oacute; de funcionar. &iquest;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&eacute;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&eacute;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&oacute;n 'ver c&oacute;digo fuente' en el navegador +web y probablemente encontrar&aacute; el c&oacute;digo fuente de su +script PHP. Esto quiere decir que el servidor web no envi&oacute; el +script a PHP para su interpretaci&oacute;n. Algo est&aacute; mal en la +configuraci&oacute;n del servidor - revise cuidadosamente la +configuraci&oacute;n del servidor con las instrucciones de +instalaci&oacute;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&eacute;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&oacute; cuando el servidor intent&oacute; ejecutar PHP. Para +poder ver un mensaje de error m&aacute;s &uacute;til, desde la +l&iacute;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&uacute;n problema +corriendo, entonces se desplegar&aacute; un mensaje de error +apropiado, el cual le dar&aacute; una pista sobre lo que debe hacer a +continuaci&oacute;n. Si recibe una pantalla llena de c&oacute;digos +HTML (la salida de la funci&oacute;n <function>phpinfo</function>) +entonces PHP est&aacute; funcionando, y su problema puede estar +relacionado con la configuraci&oacute;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&iacute;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&iacute;as de cliente de MySQL. Algunas necesitan --with-zlib, +otras no. Esto tema tambi&eacute;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&eacute;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&oacute; en su intento de +producir una salida. Para poder ver un mensaje de error m&aacute;s +&uacute;til, desde la l&iacute;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&uacute;n problema +ejecut&aacute;ndose, entonces se desplegar&aacute; un mensaje de error +apropiado, el cual le dar&aacute; una pista sobre lo que necesita +hacer a continuaci&oacute;n. Si recibe una pantalla llena de +c&oacute;digos HTML (la salida de la +funci&oacute;n <function>phpinfo</function>) entonces PHP est&aacute; +funcionando. + </para> + <para> +Una vez PHP est&eacute; trabajando desde la l&iacute;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_&lt;machinename&gt;</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&oacute;n PHP que est&eacute; tratando +cargar son de tal forma que el usuario an&oacute;nimo de +internet <literal>ISUR_&lt;nombre_maquina&gt;</literal> no tiene +acceso a &eacute;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&aacute;, relativo a su directorio web +ra&iacute;z). Note que para IIS, puede atrapar este error +seleccionando la caja 'check file exists' cuando est&eacute; +configurando la gesti&oacute;n de scripts bajo Internet Services +Manager. Si un archivo de script no existe, entonces el servidor +devolver&aacute;n un error 404 en su lugar. Tambi&eacute;n existe el +beneficio adicional de que IIS se encargar&aacute; de cualquier +autenticaci&oacute;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, &iexcl;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>. +&iexcl;Aseg&uacute;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&oacute;nimo que es agregado al momento de instalar IIS. Este +usuario necesita privilegios +sobre <filename>php.exe</filename>. Tambi&eacute;n, cualquier usuario +autenticado necesitar&aacute; permisos para +ejecutar <filename>php.exe</filename>. Y para IIS4, necesita decirle +que PHP es un motor de scripts. Asi mismo, querr&aacute; 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&iacute; que +aseg&uacute;rese de que la directiva no se encuentre comentada (con +un <literal>;</literal>). Como todas las directivas, &eacute;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&eacute; 100% seguro de que el archivo &php.ini; +correcto est&aacute; siendo le&iacute;do. Lea <link +linkend="faq.installation.findphpini">este faq</link> para m&aacute;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. + +&iquest;C&oacute;mo se si mi &php.ini; est&aacute; siendo encontrado y +le&iacute;do? Pareciera que mis cambios no est&aacute;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&aacute; siendo le&iacute;do +por PHP, haga un llamado a <function>phpinfo</function>, y cerca del +comienzo encontrar&aacute; un listado llamado <literal>Configuration +File (php.ini)</literal>. &Eacute;ste le dir&aacute; en d&oacute;nde +est&aacute; buscando PHP el archivo &php.ini; y si est&aacute; siendo +le&iacute;do o no. Si s&oacute;lo existe un directorio PATH, entonces +no est&aacute; siendo le&iacute;do y debe colocar su &php.ini; en ese +directorio. Si &php.ini; es incluido con la ruta PATH, entonces +est&aacute; siendo le&iacute;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&aacute; siendo leido y est&aacute; ejecutando PHP +como un m&oacute;dulo, entonces aseg&uacute;rese de reiniciar su +navegador web despu&eacute;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&eacute;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&eacute;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&eacute;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&eacute;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&oacute;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&aacute;n presentados en un formato que muestra las claves y los elementos. Una notaci&oacute;n parecida es usada para variables tipo <type>object</type>. +<function>print_r</function> y <function>var_export</function> +mostrar&aacute;n tambi&eacute;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&aacute; 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&oacute;n almacenada + Crea un valor PHP a partir de una representaci&oacute;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&aacute;metro <parameter>llamada_de_retorno</parameter> fue - agregado en PHP 4.2.0 - </para> - </note> <para> Si la variable que est&aacute; siendo convertida de vuelta es un objeto, PHP intentar&aacute; llamar la funci&oacute;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&oacute;n despliega informaci&oacute;n estructurada sobre una o m&aacute;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&oacute;lo las propiedades p&uacute;blicas de los objetos +ser&aacute;n devueltas en la salida. <function>var_export</function> +y <function>print_r</function> devolver&aacute;n tambi&eacute;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&eacute;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&oacute;n de cadena de una variable</refpurpose> + <refpurpose>Imprime o devuelve una representaci&oacute;n de cadena, + apta para su procesamiento, de una variable</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> @@ -17,17 +18,15 @@ <simpara> Esta funci&oacute;n devuelve informaci&oacute;n estructurada sobre la variable que le es pasada. Es similar a <function>var_dump</function> -con la excepci&oacute;n de que la represencaci&oacute;n devuelta es -c&oacute;digo PHP v&aacute;lido. +con dos excepciones. La primera es que la representaci&oacute;n +devuelta es c&oacute;digo PHP v&aacute;lido, la segunda, que +tambi&eacute;n devolver&aacute; propiedades protegidas y privadas de +un objeto con PHP 5. </simpara> <simpara> Tambi&eacute;n puede devolver la representaci&oacute;n de la variable usando &true; como segundo par&aacute;metro para esta funci&oacute;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&eacute;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&aacute;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&oacute;n de variables comunes de depuraci&oacute;n</title> <programlisting role="php"> <![CDATA[ -<form method="POST" action="destino_del_ataque?errors=Y&amp;showerrors=1&amp;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&amp;showerrors=1&amp;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>
« previous php.doc.es (#460) next »