1
0
mirror of https://github.com/php/doc-it.git synced 2026-04-27 01:08:21 +02:00
Files
Richard Quadling 537ecf083d Standardized on double quotes for attributes.
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@317505 c90b9560-bf6c-de11-be94-00142212c4b1
2011-09-30 14:24:40 +00:00

117 lines
3.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- EN-Revision: n/a Maintainer: darvina Status: ready -->
<refentry xml:id="function.sha1-file" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>sha1_file</refname>
<refpurpose>Calcola l'hash sha1 di un file</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></methodparam>
</methodsynopsis>
<simpara>
Calcola l'hash sha1 di <parameter>filename</parameter> usando il
<link xlink:href="&url.rfc;3174">US Secure Hash Algorithm 1</link>,
e restituisce l'hash. L'hash è un numero esadecimale di 40 caratteri.
</simpara>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>filename</parameter></term>
<listitem>
<para>
Il nome del file
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>raw_output</parameter></term>
<listitem>
<para>
Quando è impostato a &true;, l'hash sha1 è restituito in formato binario con una
lunghezza di 20 caratteri. Per default vale &false;.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Restituisce una stringa se ha successo, &false; negli altri casi.
</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>
Aggiunto il parametro <parameter>raw_output</parameter>.
</entry>
</row>
<row>
<entry>5.1.0</entry>
<entry>
Modificata la funzione per utilizzare lr API streams. Ciò significa che si può
utlizzare la funzione con i vari warppers, tipo <literal>sha1_file('http://example.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
-->