cvs: phpdoc-da /reference/strings/functions sha1-file.xml

From: Date: Tue, 14 Jun 2005 22:19:17 +0000
Subject: cvs: phpdoc-da /reference/strings/functions sha1-file.xml
Groups: php.doc.da 
Request: Send a blank email to doc-da+get-360@lists.php.net to get a copy of this message
holst Tue Jun 14 18:19:17 2005 EDT Modified files: /phpdoc-da/reference/strings/functions sha1-file.xml Log: Sync with EN http://cvs.php.net/diff.php/phpdoc-da/reference/strings/functions/sha1-file.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-da/reference/strings/functions/sha1-file.xml diff -u phpdoc-da/reference/strings/functions/sha1-file.xml:1.2 phpdoc-da/reference/strings/functions/sha1-file.xml:1.3 --- phpdoc-da/reference/strings/functions/sha1-file.xml:1.2 Fri Oct 8 14:20:08 2004 +++ phpdoc-da/reference/strings/functions/sha1-file.xml Tue Jun 14 18:19:16 2005 @@ -1,37 +1,99 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.4 Maintainer: holst Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: holst Status: ready --> <refentry id="function.sha1-file"> <refnamediv> <refname>sha1_file</refname> <refpurpose>Beregn sha1-hashen af en fil</refpurpose> </refnamediv> - <refsect1> - <title>Beskrivelse</title> - <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> + <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> Beregner sha1-hashen af <parameter>filename</parameter> ved hjælp af <ulink url="&url.rfc;3174">US Secure Hash Algorithm 1</ulink>, og - returnerer den hash. Hashen er et 40-tegns hexadecimalt tal. Ved fejl, - bliver der returneret &false;. Hvis den valgfrie - <parameter>raw_output</parameter> er sat til &true;, så vil sha1 istedet - blive returneret i en rå binær form med en længde på 20 tegn. - </simpara> - <note> - <simpara> - Den valgfrie <parameter>raw_output</parameter>-parameter blev tilføjet i - PHP 5.0.0 og er som standard &false;. - </simpara> - </note> - <simpara> - Se også <function>sha1</function>, <function>crc32</function> - og <function>md5_file</function> + returnerer den hash. Hashen er et 40-tegns hexadecimalt tal. </simpara> </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>filename</parameter></term> + <listitem> + <para> + Filnavnet + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>raw_output</parameter></term> + <listitem> + <para> + Ved &true; returneres uddraget i råt binært format med en længde på + 20. Er som standard &false; + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returnerer en streng når den lykkes, hvis ikke returnerer den &false; + </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> + Parametret <parameter>raw_output</parameter> blev tilføjet + </entry> + </row> + <row> + <entry>5.1.0</entry> + <entry> + Ændrede funktionen til at bruge streams API'en. Dette betyder at du + kan bruge den med wrappers, såsom + <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

« previous php.doc.da (#360) next »