svn: /phpdoc/es/trunk/reference/strings/functions/ sha1-file.xml sha1.xml
| From: | Juan Pablo Berdejo | Date: | Fri, 10 Dec 2010 01:53:45 +0000 |
| Subject: | svn: /phpdoc/es/trunk/reference/strings/functions/ sha1-file.xml sha1.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-3922@lists.php.net to get a copy of this message | ||
jpberdejo Fri, 10 Dec 2010 01:53:45 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306163
Log:
New translated file
Changed paths:
A phpdoc/es/trunk/reference/strings/functions/sha1-file.xml
U phpdoc/es/trunk/reference/strings/functions/sha1.xml
Added: phpdoc/es/trunk/reference/strings/functions/sha1-file.xml
===================================================================
--- phpdoc/es/trunk/reference/strings/functions/sha1-file.xml (rev 0)
+++ phpdoc/es/trunk/reference/strings/functions/sha1-file.xml 2010-12-10 01:53:45 UTC (rev 306163)
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 297028 Maintainer: jpberdejo Status: ready -->
+<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook"
xml:id="function.sha1-file">
+ <refnamediv>
+ <refname>sha1_file</refname>
+ <refpurpose>Calcula el hash sha1 de un archivo</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>string</type><methodname>sha1_file</methodname>
+
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
+ <methodparam
choice='opt'><type>bool</type><parameter>raw_output</parameter><initializer>false</initializer></methodparam>
+ </methodsynopsis>
+ <simpara>
+ Calcula el hash sha1 del archivo especificado mediante
+ <parameter>filename</parameter> utilizando el
+ <link xlink:href="&url.rfc;3174">algoritmo de hash seguro 1 de
US</link>
+ y devuelve ese hash. El hash es un número hexadecimal de 40 caracteres.
+ </simpara>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>filename</parameter></term>
+ <listitem>
+ <para>
+ El nombre del archivo para el hash.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>raw_output</parameter></term>
+ <listitem>
+ <para>
+ Cuando es &true;, devuelve el resumen en formato binario sin tratar con una
+ longitud de 20.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Devuelve un string cuando es exitoso o &false; si no es así.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Ejemplo de <function>sha1_file</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+foreach(glob('/home/Kalle/myproject/*.php') as $ent)
+{
+ if(is_dir($ent))
+ {
+ continue;
+ }
+
+ echo $ent . ' (SHA1: ' . sha1_file($ent) . ')', PHP_EOL;
+}
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.0.0</entry>
+ <entry>
+ Agregado el parámetro <parameter>raw_output</parameter>.
+ </entry>
+ </row>
+ <row>
+ <entry>5.1.0</entry>
+ <entry>
+ Cambiada la función para utilizar el API de flujo de datos. Esto significa que se puede
usar
+ con envolturas, como en <literal>sha1_file('http://ejemplo.com/..')</literal>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>sha1</function></member>
+ <member><function>md5_file</function></member>
+ <member><function>crc32</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
+
Property changes on: phpdoc/es/trunk/reference/strings/functions/sha1-file.xml
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native
Modified: phpdoc/es/trunk/reference/strings/functions/sha1.xml
===================================================================
--- phpdoc/es/trunk/reference/strings/functions/sha1.xml 2010-12-10 01:45:55 UTC (rev 306162)
+++ phpdoc/es/trunk/reference/strings/functions/sha1.xml 2010-12-10 01:53:45 UTC (rev 306163)
@@ -16,7 +16,7 @@
</methodsynopsis>
<simpara>
Calcula el hash sha1 de <parameter>str</parameter> utilizando el
- <link xlink:href="&url.rfc;3174">algoritmo seguro de hash 1 de
US</link>.
+ <link xlink:href="&url.rfc;3174">algoritmo de hash seguro 1 de
US</link>.
</simpara>
</refsect1>
@@ -82,7 +82,7 @@
&reftitle.examples;
<para>
<example>
- <title>A <function>sha1</function> example</title>
+ <title>Ejemplo de <function>sha1</function></title>
<programlisting role="php">
<![CDATA[
<?php