<strings>
<string id="zlib_get_coding_type" value="<div id='function.zlib-get-coding-type' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zlib-get-coding-type.php'>zlib_get_coding_type</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.3.2, PHP 5)</p><p class='refpurpose'><span class='refname'>zlib_get_coding_type</span> &amp;mdash; <span class='dc-title'>Gibt die f&amp;uuml;r Ausgabekomprimierung genutze Methode zur&amp;uuml;ck</span></p> </div> <a name='function.zlib-get-coding-type.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>zlib_get_coding_type</b></span> ( <span class='methodparam'>void</span> )</div> <p class='para rdfs-comment'> Gibt die f&amp;uuml;r Ausgabekomprimierung genutze Methode zur&amp;uuml;ck. </p> </div> <a name='function.zlib-get-coding-type.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> M&amp;ouml;gliche Ergebnisse sind <i>gzip</i>, <i>deflate</i>, oder <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.zlib-get-coding-type.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'> Die <a href='http://www.php.net/manual/de/zlib.configuration.php#ini.zlib.output-compression' class='link'>zlib.output_compression</a> Direktive. </li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="zip_read" value="<div id='function.zip-read' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zip-read.php'>zip_read</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.1.0, PHP 5 &amp;gt;= 5.2.0, PECL zip &amp;gt;= 1.0.0)</p><p class='refpurpose'><span class='refname'>zip_read</span> &amp;mdash; <span class='dc-title'>Liest den n&amp;auml;chsten Eintrag innerhalb des ZIP Archivs</span></p> </div> <a name='function.zip-read.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'><a href='http://www.php.net/manual/de/language.pseudo-types.php#language.types.mixed' class='type mixed'>mixed</a></span> <span class='methodname'><b>zip_read</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zip</tt></span> )</div> <p class='para rdfs-comment'> Liest den n&amp;auml;chsten Eintrag innerhalb des ZIP Archivs. </p> </div> <a name='function.zip-read.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Eine ZIP-Datei, die zuvor mittels <a href='http://www.php.net/manual/de/function.zip-open.php' class='function'>zip_open()</a> ge&amp;ouml;ffnet wurde. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-read.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt im Erfolgsfall einen Verzeichniseintrag zur sp&amp;auml;teren Benutzung mit den <i>zip_entry_...</i> Funktionen zur&amp;uuml;ck. Wenn keine weiteren Eintr&amp;auml;ge vorhanden sind, wird <b><tt class='constant'>FALSE</tt></b> zur&amp;uuml;ckgegeben. Tritt ein Fehler auf, ist der R&amp;uuml;ckgabewert die entsprechende Fehlernummer. </p> </div> <a name='function.zip-read.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - &amp;Ouml;ffnet ein ZIP-Archiv</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-close.php' class='function' rel='rdfs-seeAlso'>zip_close()</a> - Schlie&amp;szlig;t ein ZIP-Archiv</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-entry-open.php' class='function' rel='rdfs-seeAlso'>zip_entry_open()</a> - &amp;Ouml;ffnet einen Verzeichniseintrag f&amp;uuml;r den Lesezugriff</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-entry-read.php' class='function' rel='rdfs-seeAlso'>zip_entry_read()</a> - Liest einen ge&amp;ouml;ffneten Verzeichniseintrag aus</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="zip_open" value="<div id='function.zip-open' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zip-open.php'>zip_open</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.1.0, PHP 5 &amp;gt;= 5.2.0, PECL zip &amp;gt;= 1.0.0)</p><p class='refpurpose'><span class='refname'>zip_open</span> &amp;mdash; <span class='dc-title'>&amp;Ouml;ffnet ein ZIP-Archiv</span></p> </div> <a name='function.zip-open.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'><a href='http://www.php.net/manual/de/language.pseudo-types.php#language.types.mixed' class='type mixed'>mixed</a></span> <span class='methodname'><b>zip_open</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$filename</tt></span> )</div> <p class='para rdfs-comment'> &amp;Ouml;ffnet ein ZIP-Archiv f&amp;uuml;r den Lesezugriff. </p> </div> <a name='function.zip-open.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>filename</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Der Name der zu &amp;ouml;ffnenden ZIP-Datei. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-open.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt einen Dateizeiger f&amp;uuml;r die sp&amp;auml;tere Verwendung mit <a href='http://www.php.net/manual/de/function.zip-read.php' class='function'>zip_read()</a> und <a href='http://www.php.net/manual/de/function.zip-close.php' class='function'>zip_close()</a> zur&amp;uuml;ck. Ist <i><tt class='parameter'>filename</tt></i> nicht vorhanden oder tritt ein anderer Fehler auf, wird die Fehlernummer zur&amp;uuml;ckgegeben. </p> </div> <a name='function.zip-open.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Liest den n&amp;auml;chsten Eintrag innerhalb des ZIP Archivs</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-close.php' class='function' rel='rdfs-seeAlso'>zip_close()</a> - Schlie&amp;szlig;t ein ZIP-Archiv</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="zip_entry_read" value="<div id='function.zip-entry-read' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zip-entry-read.php'>zip_entry_read</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.1.0, PHP 5 &amp;gt;= 5.2.0, PECL zip &amp;gt;= 1.0.0)</p><p class='refpurpose'><span class='refname'>zip_entry_read</span> &amp;mdash; <span class='dc-title'>Liest einen ge&amp;ouml;ffneten Verzeichniseintrag aus</span></p> </div> <a name='function.zip-entry-read.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>zip_entry_read</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zip_entry</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$length</tt></span> ] )</div> <p class='para rdfs-comment'> Liest aus einem ge&amp;ouml;ffneten Verzeichniseintrag. </p> </div> <a name='function.zip-entry-read.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip_entry</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Ein von <a href='http://www.php.net/manual/de/function.zip-read.php' class='function'>zip_read()</a> zur&amp;uuml;ckgegebener Verzeichniseintrag. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die Anzahl der zur&amp;uuml;ckzugebenden Bytes. Wenn nicht angegeben, versucht die Funktion, die ersten 1024 Bytes zu lesen. </p> <blockquote><p><b class='note'>Hinweis</b>: Dies sollte die L&amp;auml;nge der der unkomprimierten Daten sein, die Sie auslesen m&amp;ouml;chten. <br /> </p></blockquote> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-read.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt die gelesenen Daten zur&amp;uuml;ck oder <b><tt class='constant'>FALSE</tt></b>, wenn das Ende der Datei erreicht ist. </p> </div> <a name='function.zip-entry-read.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.zip-entry-open.php' class='function' rel='rdfs-seeAlso'>zip_entry_open()</a> - &amp;Ouml;ffnet einen Verzeichniseintrag f&amp;uuml;r den Lesezugriff</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-entry-close.php' class='function' rel='rdfs-seeAlso'>zip_entry_close()</a> - Schlie&amp;szlig;t einen Verzeichniseintrag</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-entry-filesize.php' class='function' rel='rdfs-seeAlso'>zip_entry_filesize()</a> - Ermittelt die effektive Gr&amp;ouml;&amp;szlig;e eines Verzeichniseintrages</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="zip_entry_open" value="<div id='function.zip-entry-open' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zip-entry-open.php'>zip_entry_open</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.1.0, PHP 5 &amp;gt;= 5.2.0, PECL zip &amp;gt;= 1.0.0)</p><p class='refpurpose'><span class='refname'>zip_entry_open</span> &amp;mdash; <span class='dc-title'>&amp;Ouml;ffnet einen Verzeichniseintrag f&amp;uuml;r den Lesezugriff</span></p> </div> <a name='function.zip-entry-open.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>zip_entry_open</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zip</tt></span> , <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zip_entry</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$mode</tt></span> ] )</div> <p class='para rdfs-comment'> &amp;Ouml;ffnet einen Verzeichniseintrag f&amp;uuml;r den Lesezugriff. </p> </div> <a name='function.zip-entry-open.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Ein valides Ressource-Handle, das von der <a href='http://www.php.net/manual/de/function.zip-open.php' class='function'>zip_open()</a> zur&amp;uuml;ckgegeben wurde. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip_entry</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Ein Verzeichniseintrag, der von <a href='http://www.php.net/manual/de/function.zip-read.php' class='function'>zip_read()</a> zur&amp;uuml;ckgegeben wurde. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Einer der in der Dokumentation zu <a href='http://www.php.net/manual/de/function.fopen.php' class='function'>fopen()</a> angegebenen Modi. </p> <blockquote><p><b class='note'>Hinweis</b>: Derzeit wird <i><tt class='parameter'>mode</tt></i> ignoriert und statt dessen standardm&amp;auml;&amp;szlig;ig <i>&amp;quot;rb&amp;quot;</i> verwendet. Dies ist dadurch bedingt, dass der ZIP-Support in PHP nur den Nur-Lesen-Modus unterst&amp;uuml;tzt. <br /> </p></blockquote> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-open.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt bei Erfolg <b><tt class='constant'>TRUE</tt></b> zur&amp;uuml;ck, im Fehlerfall <b><tt class='constant'>FALSE</tt></b>. </p> <blockquote><p><b class='note'>Hinweis</b>: Im Gegensatz zu <a href='http://www.php.net/manual/de/function.fopen.php' class='function'>fopen()</a> und vergleichbaren Funktionen zeigt der R&amp;uuml;ckgabewert von <b>zip_entry_open()</b> nur das Gelingen an und wird nicht f&amp;uuml;r weitere Operationen ben&amp;ouml;tigt. <br /> </p></blockquote> </div> <a name='function.zip-entry-open.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.zip-entry-close.php' class='function' rel='rdfs-seeAlso'>zip_entry_close()</a> - Schlie&amp;szlig;t einen Verzeichniseintrag</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-entry-read.php' class='function' rel='rdfs-seeAlso'>zip_entry_read()</a> - Liest einen ge&amp;ouml;ffneten Verzeichniseintrag aus</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="zip_entry_name" value="<div id='function.zip-entry-name' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zip-entry-name.php'>zip_entry_name</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.1.0, PHP 5 &amp;gt;= 5.2.0, PECL zip &amp;gt;= 1.0.0)</p><p class='refpurpose'><span class='refname'>zip_entry_name</span> &amp;mdash; <span class='dc-title'>Gibt den Namen eines Verzeichniseintrages zur&amp;uuml;ck</span></p> </div> <a name='function.zip-entry-name.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>zip_entry_name</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zip_entry</tt></span> )</div> <p class='para rdfs-comment'> Gibt den Names eines angegebenen Verzeichniseintrags zur&amp;uuml;ck. </p> </div> <a name='function.zip-entry-name.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip_entry</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Ein von <a href='http://www.php.net/manual/de/function.zip-read.php' class='function'>zip_read()</a> zur&amp;uuml;ckgegebener Verzeichniseintrag. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-name.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Der Name des Verzeichniseintrags. </p> </div> <a name='function.zip-entry-name.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - &amp;Ouml;ffnet ein ZIP-Archiv</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Liest den n&amp;auml;chsten Eintrag innerhalb des ZIP Archivs</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="zip_entry_filesize" value="<div id='function.zip-entry-filesize' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zip-entry-filesize.php'>zip_entry_filesize</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.1.0, PHP 5 &amp;gt;= 5.2.0, PECL zip &amp;gt;= 1.0.0)</p><p class='refpurpose'><span class='refname'>zip_entry_filesize</span> &amp;mdash; <span class='dc-title'>Ermittelt die effektive Gr&amp;ouml;&amp;szlig;e eines Verzeichniseintrages</span></p> </div> <a name='function.zip-entry-filesize.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>zip_entry_filesize</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zip_entry</tt></span> )</div> <p class='para rdfs-comment'> Gibt die effektive Gr&amp;ouml;&amp;szlig;e des angegebenen Verzeichniseintrags zur&amp;uuml;ck. </p> </div> <a name='function.zip-entry-filesize.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip_entry</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Ein von <a href='http://www.php.net/manual/de/function.zip-read.php' class='function'>zip_read()</a> zur&amp;uuml;ckgegebener Verzeichniseintrag. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-filesize.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Die Gr&amp;ouml;&amp;szlig;e des Verzeichniseintrags. </p> </div> <a name='function.zip-entry-filesize.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - &amp;Ouml;ffnet ein ZIP-Archiv</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Liest den n&amp;auml;chsten Eintrag innerhalb des ZIP Archivs</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="zip_entry_compressionmethod" value="<div id='function.zip-entry-compressionmethod' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zip-entry-compressionmethod.php'>zip_entry_compressionmethod</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.1.0, PHP 5 &amp;gt;= 5.2.0, PECL zip &amp;gt;= 1.0.0)</p><p class='refpurpose'><span class='refname'>zip_entry_compressionmethod</span> &amp;mdash; <span class='dc-title'>Ermittelt die Komprimierungsmethode eines Verzeichniseintrags</span></p> </div> <a name='function.zip-entry-compressionmethod.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>zip_entry_compressionmethod</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zip_entry</tt></span> )</div> <p class='para rdfs-comment'> Gibt die Komprimierungsmethode des von <i><tt class='parameter'>zip_entry</tt></i> angegebenen Verzeichniseintrages zur&amp;uuml;ck. </p> </div> <a name='function.zip-entry-compressionmethod.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip_entry</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Ein von <a href='http://www.php.net/manual/de/function.zip-read.php' class='function'>zip_read()</a> zur&amp;uuml;ckgegebener Verzeichniseintrag. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-compressionmethod.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Die Komprimierungsmethode. </p> </div> <a name='function.zip-entry-compressionmethod.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - &amp;Ouml;ffnet ein ZIP-Archiv</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Liest den n&amp;auml;chsten Eintrag innerhalb des ZIP Archivs</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="zip_entry_compressedsize" value="<div id='function.zip-entry-compressedsize' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zip-entry-compressedsize.php'>zip_entry_compressedsize</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.1.0, PHP 5 &amp;gt;= 5.2.0, PECL zip &amp;gt;= 1.0.0)</p><p class='refpurpose'><span class='refname'>zip_entry_compressedsize</span> &amp;mdash; <span class='dc-title'>Ermittelt die komprimierte Gr&amp;ouml;&amp;szlig;e eines Verzeichniseintrages</span></p> </div> <a name='function.zip-entry-compressedsize.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>zip_entry_compressedsize</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zip_entry</tt></span> )</div> <p class='para rdfs-comment'> Gibt die komprimierte Gr&amp;ouml;&amp;szlig;e des angegebenen Verzeichniseintrages zur&amp;uuml;ck. </p> </div> <a name='function.zip-entry-compressedsize.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip_entry</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Ein von <a href='http://www.php.net/manual/de/function.zip-read.php' class='function'>zip_read()</a> zur&amp;uuml;ckgegebener Verzeichniseintrag. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-compressedsize.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Die komprimierte Gr&amp;ouml;&amp;szlig;e. </p> </div> <a name='function.zip-entry-compressedsize.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - &amp;Ouml;ffnet ein ZIP-Archiv</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Liest den n&amp;auml;chsten Eintrag innerhalb des ZIP Archivs</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="zip_entry_close" value="<div id='function.zip-entry-close' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zip-entry-close.php'>zip_entry_close</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.1.0, PHP 5 &amp;gt;= 5.2.0, PECL zip &amp;gt;= 1.0.0)</p><p class='refpurpose'><span class='refname'>zip_entry_close</span> &amp;mdash; <span class='dc-title'>Schlie&amp;szlig;t einen Verzeichniseintrag</span></p> </div> <a name='function.zip-entry-close.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>zip_entry_close</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zip_entry</tt></span> )</div> <p class='para rdfs-comment'> Schlie&amp;szlig;t den angegebenen Verzeichniseintrag. </p> </div> <a name='function.zip-entry-close.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip_entry</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Ein Verzeichniseintrag, der zuvor mit <a href='http://www.php.net/manual/de/function.zip-entry-open.php' class='function'>zip_entry_open()</a> ge&amp;ouml;ffnet wurde. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-close.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt bei Erfolg <b><tt class='constant'>TRUE</tt></b> zur&amp;uuml;ck, im Fehlerfall <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.zip-entry-close.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.zip-entry-open.php' class='function' rel='rdfs-seeAlso'>zip_entry_open()</a> - &amp;Ouml;ffnet einen Verzeichniseintrag f&amp;uuml;r den Lesezugriff</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-entry-read.php' class='function' rel='rdfs-seeAlso'>zip_entry_read()</a> - Liest einen ge&amp;ouml;ffneten Verzeichniseintrag aus</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="zip_close" value="<div id='function.zip-close' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.zip-close.php'>zip_close</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.1.0, PHP 5 &amp;gt;= 5.2.0, PECL zip &amp;gt;= 1.0.0)</p><p class='refpurpose'><span class='refname'>zip_close</span> &amp;mdash; <span class='dc-title'>Schlie&amp;szlig;t ein ZIP-Archiv</span></p> </div> <a name='function.zip-close.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'><span class='type void'>void</span></span> <span class='methodname'><b>zip_close</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zip</tt></span> )</div> <p class='para rdfs-comment'> Schlie&amp;szlig;t das &amp;uuml;bergebene ZIP-Archiv. </p> </div> <a name='function.zip-close.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Eine ZIP-Datei, die zuvor mittels <a href='http://www.php.net/manual/de/function.zip-open.php' class='function'>zip_open()</a> ge&amp;ouml;ffnet wurde. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-close.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Es wird kein Wert zur&amp;uuml;ckgegeben. </p> </div> <a name='function.zip-close.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - &amp;Ouml;ffnet ein ZIP-Archiv</li> <li class='member'><a href='http://www.php.net/manual/de/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Liest den n&amp;auml;chsten Eintrag innerhalb des ZIP Archivs</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="ZipArchive" value="<div> <h1 class='title'><a class='info-url' href='http://www.php.net/manual/de/class.ziparchive.php'>The <a href='http://www.php.net/manual/de/class.ziparchive.php' class='classname'>ZipArchive</a> class</a></h1> <div class='partintro'> <div id='ziparchive.intro' class='section'> <h2 class='title'>Einf&amp;uuml;hrung</h2> <p class='para'> A file archive, compressed with Zip. </p> </div> <div id='ziparchive.synopsis' class='section'> <h2 class='title'>Klassenbeschreibung</h2> <div class='classsynopsis'> <div class='ooclass'><b class='classname'>ZipArchive</b></div> <div class='classsynopsisinfo'> <span class='ooclass'> <b class='classname'>ZipArchive</b> </span> {</div> <div class='classsynopsisinfo classsynopsisinfo_comment'>/* Properties */</div> <div class='classsynopsisinfo classsynopsisinfo_comment'>/* Methods */</div> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-addemptydir.php' class='function'>addEmptyDir</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$dirname</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-addfile.php' class='function'>addFile</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$filename</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$localname</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-addfromstring.php' class='function'>addFromString</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$localname</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$contents</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-close.php' class='function'>close</a></span> ( <span class='methodparam'>void</span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-deleteindex.php' class='function'>deleteIndex</a></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$index</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-deletename.php' class='function'>deleteName</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$name</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-extractto.php' class='function'>extractTo</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$destination</tt></span> [, <span class='methodparam'><span class='type'><a href='http://www.php.net/manual/de/language.pseudo-types.php#language.types.mixed' class='type mixed'>mixed</a></span> <tt class='parameter'>$entries</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-getarchivecomment.php' class='function'>getArchiveComment</a></span> ( <span class='methodparam'>void</span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-getcommentindex.php' class='function'>getCommentIndex</a></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$index</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$flags</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-getcommentname.php' class='function'>getCommentName</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$name</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$flags</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-getfromindex.php' class='function'>getFromIndex</a></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$index</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$flags</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-getfromname.php' class='function'>getFromName</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$name</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$flags</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-getnameindex.php' class='function'>getNameIndex</a></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$index</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-getstatusstring.php' class='function'>getStatusString</a></span> ( <span class='methodparam'>void</span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>resource</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-getstream.php' class='function'>getStream</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$name</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-locatename.php' class='function'>locateName</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$name</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$flags</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-open.php' class='function'>open</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$filename</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$flags</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-renameindex.php' class='function'>renameIndex</a></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$index</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$newname</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-renamename.php' class='function'>renameName</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$name</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$newname</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-setarchivecomment.php' class='function'>setArchiveComment</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$comment</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-setcommentindex.php' class='function'>setCommentIndex</a></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$index</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$comment</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-setCommentName.php' class='function'>setCommentName</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$name</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$comment</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-statindex.php' class='function'>statIndex</a></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$index</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$flags</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-statname.php' class='function'>statName</a></span> ( <span class='methodparam'><span class='type'><span class='type name'>name</span></span> <tt class='parameter'>$name</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$flags</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-unchangeall.php' class='function'>unchangeAll</a></span> ( <span class='methodparam'>void</span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-unchangearchive.php' class='function'>unchangeArchive</a></span> ( <span class='methodparam'>void</span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-unchangeindex.php' class='function'>unchangeIndex</a></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$index</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>mixed</span> <span class='methodname'><a href='http://www.php.net/manual/de/function.ziparchive-unchangename.php' class='function'>unchangeName</a></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$name</tt></span> )</div> }</div> </div> <div id='ziparchive.props' class='section'> <h2 class='title'>Eigenschaften</h2> <dl> <dt id='ziparchive.props.status' class='varlistentry'> <span class='term'><var class='varname'>status</var></span> </dt><dd class='listitem'> <p class='para'>Status of the Zip Archive</p> </dd> <dt id='ziparchive.props.statussys' class='varlistentry'> <span class='term'><var class='varname'>statusSys</var></span> </dt><dd class='listitem'> <p class='para'>System status of the Zip Archive</p> </dd> <dt id='ziparchive.props.numfiles' class='varlistentry'> <span class='term'><var class='varname'>numFiles</var></span> </dt><dd class='listitem'> <p class='para'>Number of files in archive</p> </dd> <dt id='ziparchive.props.filename' class='varlistentry'> <span class='term'><var class='varname'>filename</var></span> </dt><dd class='listitem'> <p class='para'>File name in the file system</p> </dd> <dt id='ziparchive.props.comment' class='varlistentry'> <span class='term'><var class='varname'>comment</var></span> </dt><dd class='listitem'> <p class='para'>Comment for the archive</p> </dd> </dl> </div> </div> <h2>Inhaltsverzeichnis</h2><ul class='chunklist chunklist_reference'><li><a href='http://www.php.net/manual/de/function.ziparchive-addemptydir.php'>ZipArchive::addEmptyDir</a> &amp;mdash; F&amp;uuml;gt ein neues Verzeichnis hinzu</li><li><a href='http://www.php.net/manual/de/function.ziparchive-addfile.php'>ZipArchive::addFile</a> &amp;mdash; F&amp;uuml;gt eine Datei von einem gegebenen Pfad zu einem ZIP-Archiv hinzu</li><li><a href='http://www.php.net/manual/de/function.ziparchive-addfromstring.php'>ZipArchive::addFromString</a> &amp;mdash; F&amp;uuml;gt eine Datei unter Verwendung ihres Inhalts zu einem ZIP-Archiv hinzu</li><li><a href='http://www.php.net/manual/de/function.ziparchive-close.php'>ZipArchive::close</a> &amp;mdash; Schlie&amp;szlig;t das aktive Archiv (ge&amp;ouml;ffnet oder neu erstellt)</li><li><a href='http://www.php.net/manual/de/function.ziparchive-deleteindex.php'>ZipArchive::deleteIndex</a> &amp;mdash; L&amp;ouml;scht einen Archiveintrag unter Verwendung seines Index</li><li><a href='http://www.php.net/manual/de/function.ziparchive-deletename.php'>ZipArchive::deleteName</a> &amp;mdash; L&amp;ouml;scht einen Archiveintrag unter Verwendung seines Namens</li><li><a href='http://www.php.net/manual/de/function.ziparchive-extractto.php'>ZipArchive::extractTo</a> &amp;mdash; Extrahiert den Archivinhalt</li><li><a href='http://www.php.net/manual/de/function.ziparchive-getarchivecomment.php'>ZipArchive::getArchiveComment</a> &amp;mdash; Gibt den ZIP-Archiv-Kommentar zur&amp;uuml;ck</li><li><a href='http://www.php.net/manual/de/function.ziparchive-getcommentindex.php'>ZipArchive::getCommentIndex</a> &amp;mdash; Gibt den Kommentar zu einem Eintrag unter Verwendung des Eintragsindex zur&amp;uuml;ck</li><li><a href='http://www.php.net/manual/de/function.ziparchive-getcommentname.php'>ZipArchive::getCommentName</a> &amp;mdash; Gibt den Kommentar zu einem Eintrag unter Verwendung des Eintragsnamens zur&amp;uuml;ck</li><li><a href='http://www.php.net/manual/de/function.ziparchive-getfromindex.php'>ZipArchive::getFromIndex</a> &amp;mdash; Gibt den Inhalt eines Eintrags unter Verwendung seines Index zur&amp;uuml;ck</li><li><a href='http://www.php.net/manual/de/function.ziparchive-getfromname.php'>ZipArchive::getFromName</a> &amp;mdash; Gibt den Inhalt eines Eintrags unter Verwendung seines Namens zur&amp;uuml;ck</li><li><a href='http://www.php.net/manual/de/function.ziparchive-getnameindex.php'>ZipArchive::getNameIndex</a> &amp;mdash; Gibt den Namen eines Eintrags unter Verwendung seines Index zur&amp;uuml;ck</li><li><a href='http://www.php.net/manual/de/function.ziparchive-getstatusstring.php'>ZipArchive::GetStatusString</a> &amp;mdash; Returns the status error message, system and/or zip messages.</li><li><a href='http://www.php.net/manual/de/function.ziparchive-getstream.php'>ZipArchive::getStream</a> &amp;mdash; Erzeugt einen Dateizeiger zu dem per Name bestimmten Eintrag (read only)</li><li><a href='http://www.php.net/manual/de/function.ziparchive-locatename.php'>ZipArchive::locateName</a> &amp;mdash; Gibt den Index eines Archiveintrags zur&amp;uuml;ck</li><li><a href='http://www.php.net/manual/de/function.ziparchive-open.php'>ZipArchive::open</a> &amp;mdash; &amp;Ouml;ffnet ein ZIP-Dateiarchiv</li><li><a href='http://www.php.net/manual/de/function.ziparchive-renameindex.php'>ZipArchive::renameIndex</a> &amp;mdash; Benennt einen durch seinen Index bestimmten Eintrag um</li><li><a href='http://www.php.net/manual/de/function.ziparchive-renamename.php'>ZipArchive::renameName</a> &amp;mdash; Benennt einen durch seinen Namen bestimmten Eintrag um</li><li><a href='http://www.php.net/manual/de/function.ziparchive-setarchivecomment.php'>ZipArchive::setArchiveComment</a> &amp;mdash; Setzt einen Kommentar zu einem ZIP-Archiv</li><li><a href='http://www.php.net/manual/de/function.ziparchive-setcommentindex.php'>ZipArchive::setCommentIndex</a> &amp;mdash; Setzt einen Eintragskommentar, der via Eintragsindex bestimmt wird</li><li><a href='http://www.php.net/manual/de/function.ziparchive-setCommentName.php'>ZipArchive::setCommentName</a> &amp;mdash; Setzt einen Eintragskommentar, der via Eintragsnamen bestimmt wird</li><li><a href='http://www.php.net/manual/de/function.ziparchive-statindex.php'>ZipArchive::statIndex</a> &amp;mdash; Gibt die Details eines via Index bestimmten Eintrags zur&amp;uuml;ck</li><li><a href='http://www.php.net/manual/de/function.ziparchive-statname.php'>ZipArchive::statName</a> &amp;mdash; Gibt die Details eines via Namen bestimmten Eintrags zur&amp;uuml;ck</li><li><a href='http://www.php.net/manual/de/function.ziparchive-unchangeall.php'>ZipArchive::unchangeAll</a> &amp;mdash; Setzt alle im Archiv durchgef&amp;uuml;hrten &amp;Auml;nderungen zur&amp;uuml;ck</li><li><a href='http://www.php.net/manual/de/function.ziparchive-unchangearchive.php'>ZipArchive::unchangeArchive</a> &amp;mdash; Nimmt alle globalen &amp;Auml;nderungen zur&amp;uuml;ck, die im Archiv durchgef&amp;uuml;hrt wurden</li><li><a href='http://www.php.net/manual/de/function.ziparchive-unchangeindex.php'>ZipArchive::unchangeIndex</a> &amp;mdash; Nimmt alle &amp;Auml;nderungen zur&amp;uuml;ck, die auf dem Eintrag mit dem gegebenen Index gemacht wurden</li><li><a href='http://www.php.net/manual/de/function.ziparchive-unchangename.php'>ZipArchive::unchangeName</a> &amp;mdash; Nimmt alle &amp;Auml;nderungen zur&amp;uuml;ck, die auf dem Eintrag mit dem gegebenen Namen gemacht wurden</li></ul> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="readgzfile" value="<div id='function.readgzfile' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.readgzfile.php'>readgzfile</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>readgzfile</span> &amp;mdash; <span class='dc-title'>Gibt eine gz-komprimierte Datei aus</span></p> </div> <a name='function.readgzfile.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>readgzfile</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$filename</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$use_include_path</tt><span class='initializer'> = 0</span></span> ] )</div> <p class='para rdfs-comment'> Liest eine Datei, dekomprimiert sie und gibt das Ergebnis auf die Standardausgabe aus. </p> <p class='para'> <b>readgzfile()</b> kann auch Dateien lesen die nicht im gzip Format vorliegen; in diesem Fall wird der Inhalt der Datei direkt ohne dekomprimierung ausgegeben. </p> </div> <a name='function.readgzfile.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>filename</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Der Dateiname. Die Dtaie wird ge&amp;ouml;ffnet und ihr Inhalt auf die Standartausgabe ausgegeben. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>use_include_path</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Sie k&amp;ouml;nnen diesen parameter auf <i>1</i> setzen wenn die Datei auch im <a href='http://www.php.net/manual/de/ini.core.php#ini.include-path' class='link'>include_path</a> gesucht werden soll. </p> </dd> </dl> <p> </p> </div> <a name='function.readgzfile.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt die Anzahl der ausgegebenen Zeichen zur&amp;uuml;ck. Falls ein Fehler auftritt wird <b><tt class='constant'>FALSE</tt></b> zur&amp;uuml;ckgegeben, au&amp;szlig;erdem wird eine Fehlermeldung ausgegeben es sei denn die Funktion wurde als <i>@readgzfile</i> aufgerufen. printed. </p> </div> <a name='function.readgzfile.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzpassthru.php' class='function' rel='rdfs-seeAlso'>gzpassthru()</a> - Output all remaining data on a gz-file pointer</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzfile.php' class='function' rel='rdfs-seeAlso'>gzfile()</a> - Read entire gz-file into an array</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - &amp;Ouml;ffnet gz-Dateien</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="ob_gzhandler" value="<div id='function.ob-gzhandler' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.ob-gzhandler.php'>ob_gzhandler</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>ob_gzhandler</span> &amp;mdash; <span class='dc-title'>ob_start callback function to gzip output buffer</span></p> </div> <a name='function.ob-gzhandler.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>ob_gzhandler</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$buffer</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$mode</tt></span> )</div> <p class='para rdfs-comment'> <b>ob_gzhandler()</b> is intended to be used as a callback function for <a href='http://www.php.net/manual/de/function.ob-start.php' class='function'>ob_start()</a> to help facilitate sending gz-encoded data to web browsers that support compressed web pages. Before <b>ob_gzhandler()</b> actually sends compressed data, it determines what type of content encoding the browser will accept (&amp;quot;gzip&amp;quot;, &amp;quot;deflate&amp;quot; or none at all) and will return its output accordingly. All browsers are supported since it&amp;#039;s up to the browser to send the correct header saying that it accepts compressed web pages. If a browser doesn&amp;#039;t support compressed pages this function returns <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.ob-gzhandler.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>buffer</tt></i> </span> </dt><dd class='listitem'> <p class='para'> </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> </p> </dd> </dl> <p> </p> </div> <a name='function.ob-gzhandler.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> </p> </div> <a name='function.ob-gzhandler.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>Changelog</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>Version</th> <th>Beschreibung</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.0.5</td> <td align='left'> The <i><tt class='parameter'>mode</tt></i> parameter was added. </td> </tr> </tbody> </table> <p> </p> </div> <a name='function.ob-gzhandler.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>ob_gzhandler()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /><br />ob_start</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'ob_gzhandler'</span><span style='color: #007700'>);<br /><br /></span><span style='color: #0000BB'>?&amp;gt;<br /></span>&amp;lt;html&amp;gt;<br />&amp;lt;body&amp;gt;<br />&amp;lt;p&amp;gt;This&amp;nbsp;should&amp;nbsp;be&amp;nbsp;a&amp;nbsp;compressed&amp;nbsp;page.&amp;lt;/p&amp;gt;<br />&amp;lt;/html&amp;gt;<br />&amp;lt;body&amp;gt;</span> </code></div> </div> </div><p> </p> </div> <a name='function.ob-gzhandler.notes'></a><div class='refsect1 notes'> <h3 class='title'>Anmerkungen</h3> <blockquote><p><b class='note'>Hinweis</b>: <b>ob_gzhandler()</b> requires the <a href='http://www.php.net/manual/de/ref.zlib.php' class='link'>zlib</a> extension. <br /> </p></blockquote> <blockquote><p><b class='note'>Hinweis</b>: You cannot use both <b>ob_gzhandler()</b> and <a href='http://www.php.net/manual/de/zlib.configuration.php#ini.zlib.output-compression' class='link'>zlib.output_compression</a>. Also note that using <a href='http://www.php.net/manual/de/zlib.configuration.php#ini.zlib.output-compression' class='link'> zlib.output_compression</a> is preferred over <b>ob_gzhandler()</b>. <br /> </p></blockquote> </div> <a name='function.ob-gzhandler.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.ob-start.php' class='function' rel='rdfs-seeAlso'>ob_start()</a> - Ausgabepufferung aktivieren</li> <li class='member'><a href='http://www.php.net/manual/de/function.ob-end-flush.php' class='function' rel='rdfs-seeAlso'>ob_end_flush()</a> - Leert (schickt/sendet) den Ausgabe-Puffer und deaktiviert die Ausgabe-Pufferung</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mhash_keygen_s2k" value="<div id='function.mhash-keygen-s2k' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mhash-keygen-s2k.php'>mhash_keygen_s2k</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>mhash_keygen_s2k</span> &amp;mdash; <span class='dc-title'>Generates a key</span></p> </div> <a name='function.mhash-keygen-s2k.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mhash_keygen_s2k</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$hash</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$password</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$salt</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$bytes</tt></span> )</div> <p class='para rdfs-comment'> Generates a key according to the <i><tt class='parameter'>hash</tt></i> given a user provided <i><tt class='parameter'>password</tt></i> . </p> <p class='para'> This is the Salted S2K algorithm as specified in the OpenPGP document (<a href='http://www.faqs.org/rfcs/rfc2440' class='link external'>&amp;raquo; RFC 2440</a>). </p> <p class='para'> Keep in mind that user supplied passwords are not really suitable to be used as keys in cryptographic algorithms, since users normally choose keys they can write on keyboard. These passwords use only 6 to 7 bits per character (or less). It is highly recommended to use some kind of transformation (like this function) to the user supplied key. </p> </div> <a name='function.mhash-keygen-s2k.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>hash</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The hash id used to create the key. One of the <i>MHASH_XXX</i> constants. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>password</tt></i> </span> </dt><dd class='listitem'> <p class='para'> User supplied password. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>salt</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Must be different and random enough for every key you generate in order to create different keys. That salt must be known when you check the keys, thus it is a good idea to append the key to it. Salt has a fixed length of 8 bytes and will be padded with zeros if you supply less bytes. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>bytes</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The key length, in bytes. </p> </dd> </dl> <p> </p> </div> <a name='function.mhash-keygen-s2k.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the generated key as a string, or <b><tt class='constant'>FALSE</tt></b> on error. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mhash_get_hash_name" value="<div id='function.mhash-get-hash-name' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mhash-get-hash-name.php'>mhash_get_hash_name</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mhash_get_hash_name</span> &amp;mdash; <span class='dc-title'>Gibt den Namen eines Hashs zur&amp;uuml;ck</span></p> </div> <a name='function.mhash-get-hash-name.unknown'></a><div class='refsect1 unknown'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mhash_get_hash_name</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$hash</tt></span> )</div> <p class='para rdfs-comment'> <b>mhash_get_hash_name()</b> wird verwendet, um den Namen eines Hashes zu erfahren. </p> <p class='para'> <b>mhash_get_hash_name()</b> nimmt die Hash-Id als Argument und gibt den Namen des Hashs zur&amp;uuml;ck oder <b><tt class='constant'>FALSE</tt></b>, wenn der Hash nicht existiert. </p> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 mhash_get_hash_name-Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$hash&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>MHASH_MD5</span><span style='color: #007700'>;<br /><br />print&amp;nbsp;</span><span style='color: #0000BB'>mhash_get_hash_name&amp;nbsp;</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$hash</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p> Das Beispiel oben gibt aus: <div class='example-contents screen'> <div class='cdata'><pre> MD5 </pre></div> </div> </p></div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mhash_get_block_size" value="<div id='function.mhash-get-block-size' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mhash-get-block-size.php'>mhash_get_block_size</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mhash_get_block_size</span> &amp;mdash; <span class='dc-title'> Gibt die Blockgr&amp;ouml;&amp;szlig;e von dem &amp;uuml;bergebenem Hash zur&amp;uuml;ck </span></p> </div> <a name='function.mhash-get-block-size.unknown'></a><div class='refsect1 unknown'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mhash_get_block_size</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$hash</tt></span> )</div> <p class='para rdfs-comment'> <b>mhash_get_block_size()</b> gibt die Gr&amp;ouml;&amp;szlig;e des &amp;uuml;bergebenen <i><tt class='parameter'>Hashs</tt></i> . </p> <p class='para'> <b>mhash_get_block_size()</b> nimmt ein Argument, den <i><tt class='parameter'>Hash</tt></i> und gibt die Gr&amp;ouml;&amp;szlig;e in Byte oder <b><tt class='constant'>FALSE</tt></b>, wenn <i><tt class='parameter'>Hash</tt></i> nicht existiert. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mhash_count" value="<div id='function.mhash-count' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mhash-count.php'>mhash_count</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mhash_count</span> &amp;mdash; <span class='dc-title'>Gibt den h&amp;ouml;chstm&amp;ouml;glichen Hash zur&amp;uuml;ck</span></p> </div> <a name='function.mhash-count.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mhash_count</b></span> ( <span class='methodparam'>void</span> )</div> <p class='para rdfs-comment'> <b>mhash_count()</b> gibt die h&amp;ouml;chste verf&amp;uuml;gbare Hash-Id zur&amp;uuml;ck. </p> </div> <a name='function.mhash-count.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt die h&amp;ouml;chste verf&amp;uuml;gbare Hash-Id zur&amp;uuml;ck. Hashes sind von 0 bis zu der Hash-Id nummeriert. </p> </div> <a name='function.mhash-count.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 Alle Hashes durchlaufen</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /><br />$nr&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mhash_count</span><span style='color: #007700'>();<br /><br />for&amp;nbsp;(</span><span style='color: #0000BB'>$i&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>0</span><span style='color: #007700'>;&amp;nbsp;</span><span style='color: #0000BB'>$i&amp;nbsp;</span><span style='color: #007700'>&amp;lt;=&amp;nbsp;</span><span style='color: #0000BB'>$nr</span><span style='color: #007700'>;&amp;nbsp;</span><span style='color: #0000BB'>$i</span><span style='color: #007700'>++)&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #0000BB'>sprintf&amp;nbsp;</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'Die&amp;nbsp;Blockgr&amp;ouml;&amp;szlig;e&amp;nbsp;von&amp;nbsp;%s&amp;nbsp;ist&amp;nbsp;%d\n'</span><span style='color: #007700'>,<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mhash_get_hash_name&amp;nbsp;</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$i</span><span style='color: #007700'>),<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mhash_get_block_size&amp;nbsp;</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$i</span><span style='color: #007700'>));<br />}<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mhash" value="<div id='function.mhash' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mhash.php'>mhash</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mhash</span> &amp;mdash; <span class='dc-title'>Hash berechnen</span></p> </div> <a name='function.mhash.unknown'></a><div class='refsect1 unknown'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mhash</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$hash</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> )</div> <p class='para rdfs-comment'> <b>mhash()</b> verwendet eine Hash-Funktion abh&amp;auml;ngig von <i><tt class='parameter'>hash</tt></i> auf <i><tt class='parameter'>data</tt></i> und gibt den resultierenden Hash zur&amp;uuml;ck (wird auch Digest genannt). </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mdecrypt_generic" value="<div id='function.mdecrypt-generic' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mdecrypt-generic.php'>mdecrypt_generic</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mdecrypt_generic</span> &amp;mdash; <span class='dc-title'>Decrypt data</span></p> </div> <a name='function.mdecrypt-generic.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mdecrypt_generic</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> )</div> <p class='para rdfs-comment'> This function decrypts data. Note that the length of the returned string can in fact be longer then the unencrypted string, due to the padding of the data. </p> </div> <a name='function.mdecrypt-generic.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> An encryption descriptor returned by <a href='http://www.php.net/manual/de/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a> </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Encrypted data. </p> </dd> </dl> <p> </p> </div> <a name='function.mdecrypt-generic.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mdecrypt_generic()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Data&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$key&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'this&amp;nbsp;is&amp;nbsp;a&amp;nbsp;very&amp;nbsp;long&amp;nbsp;key,&amp;nbsp;even&amp;nbsp;too&amp;nbsp;long&amp;nbsp;for&amp;nbsp;the&amp;nbsp;cipher'</span><span style='color: #007700'>;<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$plain_text&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'very&amp;nbsp;important&amp;nbsp;data'</span><span style='color: #007700'>;<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Open&amp;nbsp;module,&amp;nbsp;and&amp;nbsp;create&amp;nbsp;IV&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$td&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_open</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'des'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'ecb'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$key&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>substr</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$key</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>0</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_enc_get_key_size</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>));<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$iv_size&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_enc_get_iv_size</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$iv&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_create_iv</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$iv_size</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_RAND</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Initialize&amp;nbsp;encryption&amp;nbsp;handle&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #007700'>if&amp;nbsp;(</span><span style='color: #0000BB'>mcrypt_generic_init</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$key</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$iv</span><span style='color: #007700'>)&amp;nbsp;!=&amp;nbsp;-</span><span style='color: #0000BB'>1</span><span style='color: #007700'>)&amp;nbsp;{<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Encrypt&amp;nbsp;data&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$c_t&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_generic</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$plain_text</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_generic_deinit</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Reinitialize&amp;nbsp;buffers&amp;nbsp;for&amp;nbsp;decryption&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_generic_init</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$key</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$iv</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$p_t&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mdecrypt_generic</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$c_t</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Clean&amp;nbsp;up&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_generic_deinit</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_close</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(</span><span style='color: #0000BB'>strncmp</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$p_t</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$plain_text</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>strlen</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$plain_text</span><span style='color: #007700'>))&amp;nbsp;==&amp;nbsp;</span><span style='color: #0000BB'>0</span><span style='color: #007700'>)&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #DD0000'>'ok\n'</span><span style='color: #007700'>;<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;else&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #DD0000'>'error\n'</span><span style='color: #007700'>;<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> <p class='para'> The above example shows how to check if the data before the encryption is the same as the data after the decryption. It is very important to reinitialize the encryption buffer with <a href='http://www.php.net/manual/de/function.mcrypt-generic-init.php' class='function'>mcrypt_generic_init()</a> before you try to decrypt the data. </p> <p class='para'> The decryption handle should always be initialized with <a href='http://www.php.net/manual/de/function.mcrypt-generic-init.php' class='function'>mcrypt_generic_init()</a> with a key and an IV before calling this function. Where the encryption is done, you should free the encryption buffers by calling <a href='http://www.php.net/manual/de/function.mcrypt-generic-deinit.php' class='function'>mcrypt_generic_deinit()</a>. See <a href='http://www.php.net/manual/de/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a> for an example. </p> </div> <a name='function.mdecrypt-generic.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-generic.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic()</a> - This function encrypts data</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-generic-init.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_init()</a> - This function initializes all buffers needed for encryption</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-generic-deinit.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_deinit()</a> - This function deinitializes an encryption module</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_ofb" value="<div id='function.mcrypt-ofb' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-ofb.php'>mcrypt_ofb</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_ofb</span> &amp;mdash; <span class='dc-title'>Encrypt/decrypt data in OFB mode</span></p> </div> <a name='function.mcrypt-ofb.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_ofb</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$mode</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$iv</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_ofb</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$mode</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$iv</tt></span> ] )</div> <p class='para rdfs-comment'> The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or higher. The <i><tt class='parameter'>mode</tt></i> should be either <b><tt class='constant'>MCRYPT_ENCRYPT</tt></b> or <b><tt class='constant'>MCRYPT_DECRYPT</tt></b>. </p> <p class='para'> This function should not be used anymore, see <a href='http://www.php.net/manual/de/function.mcrypt-generic.php' class='function'>mcrypt_generic()</a> and <a href='http://www.php.net/manual/de/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</a> for replacements. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_module_self_test" value="<div id='function.mcrypt-module-self-test' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-module-self-test.php'>mcrypt_module_self_test</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_module_self_test</span> &amp;mdash; <span class='dc-title'>This function runs a self test on the specified module</span></p> </div> <a name='function.mcrypt-module-self-test.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>mcrypt_module_self_test</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algorithm</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$lib_dir</tt></span> ] )</div> <p class='para rdfs-comment'> This function runs the self test on the algorithm specified. </p> </div> <a name='function.mcrypt-module-self-test.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algorithm</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The algorithm to test. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The optional <i><tt class='parameter'>lib_dir</tt></i> parameter can contain the location of where the algorithm module is on the system. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-self-test.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> The function returns <b><tt class='constant'>TRUE</tt></b> if the self test succeeds, or <b><tt class='constant'>FALSE</tt></b> when if fails. </p> </div> <a name='function.mcrypt-module-self-test.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_module_self_test()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />var_dump</span><span style='color: #007700'>(</span><span style='color: #0000BB'>mcrypt_module_self_test</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MCRYPT_RIJNDAEL_128</span><span style='color: #007700'>))&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>var_dump</span><span style='color: #007700'>(</span><span style='color: #0000BB'>mcrypt_module_self_test</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MCRYPT_BOGUS_CYPHER</span><span style='color: #007700'>));<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> bool(true) bool(false) </pre></div> </div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_module_open" value="<div id='function.mcrypt-module-open' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-module-open.php'>mcrypt_module_open</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_module_open</span> &amp;mdash; <span class='dc-title'>Opens the module of the algorithm and the mode to be used</span></p> </div> <a name='function.mcrypt-module-open.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>resource</span> <span class='methodname'><b>mcrypt_module_open</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algorithm</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algorithm_directory</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$mode</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$mode_directory</tt></span> )</div> <p class='para rdfs-comment'> This function opens the module of the algorithm and the mode to be used. The name of the algorithm is specified in algorithm, e.g. <i>&amp;quot;twofish&amp;quot;</i> or is one of the <b><tt class='constant'>MCRYPT_ciphername</tt></b> constants. The module is closed by calling <a href='http://www.php.net/manual/de/function.mcrypt-module-close.php' class='function'>mcrypt_module_close()</a>. </p> </div> <a name='function.mcrypt-module-open.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algorithm</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The algorithm to be used. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algorithm_directory</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The <i><tt class='parameter'>algorithm_directory</tt></i> and <i><tt class='parameter'>mode_directory</tt></i> are used to locate the encryption modules. When you supply a directory name, it is used. When you set one of these to the empty string (<i>&amp;quot;&amp;quot;</i>), the value set by the <i><tt class='parameter'>mcrypt.algorithms_dir</tt></i> or <i><tt class='parameter'>mcrypt.modes_dir</tt></i> ini-directive is used. When these are not set, the default directories that are used are the ones that were compiled in into libmcrypt (usually <var class='filename'>/usr/local/lib/libmcrypt</var>). </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The mode to be used. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode_directory</tt></i> </span> </dt><dd class='listitem'> <p class='para'> </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-open.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Normally it returns an encryption descriptor, or <b><tt class='constant'>FALSE</tt></b> on error. </p> </div> <a name='function.mcrypt-module-open.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_module_open()</b> examples</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$td&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_open</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MCRYPT_DES</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>,<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_MODE_ECB</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'/usr/lib/mcrypt-modes'</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$td&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_open</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'rijndael-256'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'ofb'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> <p class='para'> The first line in the example above will try to open the <i>DES</i> cipher from the default directory and the <i>EBC</i> mode from the directory <var class='filename'>/usr/lib/mcrypt-modes</var>. The second example uses strings as name for the cipher and mode, this only works when the extension is linked against libmcrypt 2.4.x or 2.5.x. </p> <p class='para'> </p><div class='example'> <p><b>Beispiel #2 Using <b>mcrypt_module_open()</b> in encryption</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Open&amp;nbsp;the&amp;nbsp;cipher&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$td&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_open</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'rijndael-256'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'ofb'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Create&amp;nbsp;the&amp;nbsp;IV&amp;nbsp;and&amp;nbsp;determine&amp;nbsp;the&amp;nbsp;keysize&amp;nbsp;length,&amp;nbsp;use&amp;nbsp;MCRYPT_RAND<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;on&amp;nbsp;Windows&amp;nbsp;instead&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$iv&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_create_iv</span><span style='color: #007700'>(</span><span style='color: #0000BB'>mcrypt_enc_get_iv_size</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>),&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_DEV_RANDOM</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$ks&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_enc_get_key_size</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Create&amp;nbsp;key&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$key&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>substr</span><span style='color: #007700'>(</span><span style='color: #0000BB'>md5</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'very&amp;nbsp;secret&amp;nbsp;key'</span><span style='color: #007700'>),&amp;nbsp;</span><span style='color: #0000BB'>0</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$ks</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Intialize&amp;nbsp;encryption&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_generic_init</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$key</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$iv</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Encrypt&amp;nbsp;data&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$encrypted&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_generic</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'This&amp;nbsp;is&amp;nbsp;very&amp;nbsp;important&amp;nbsp;data'</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Terminate&amp;nbsp;encryption&amp;nbsp;handler&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_generic_deinit</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Initialize&amp;nbsp;encryption&amp;nbsp;module&amp;nbsp;for&amp;nbsp;decryption&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_generic_init</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$key</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$iv</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Decrypt&amp;nbsp;encrypted&amp;nbsp;string&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$decrypted&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mdecrypt_generic</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$encrypted</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Terminate&amp;nbsp;decryption&amp;nbsp;handle&amp;nbsp;and&amp;nbsp;close&amp;nbsp;module&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_generic_deinit</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_close</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #FF8000'>/*&amp;nbsp;Show&amp;nbsp;string&amp;nbsp;*/<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #0000BB'>trim</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$decrypted</span><span style='color: #007700'>)&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.mcrypt-module-open.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-module-close.php' class='function' rel='rdfs-seeAlso'>mcrypt_module_close()</a> - Close the mcrypt module</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-generic.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic()</a> - This function encrypts data</li> <li class='member'><a href='http://www.php.net/manual/de/function.mdecrypt-generic.php' class='function' rel='rdfs-seeAlso'>mdecrypt_generic()</a> - Decrypt data</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-generic-init.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_init()</a> - This function initializes all buffers needed for encryption</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-generic-deinit.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_deinit()</a> - This function deinitializes an encryption module</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_module_is_block_mode" value="<div id='function.mcrypt-module-is-block-mode' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-module-is-block-mode.php'>mcrypt_module_is_block_mode</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_module_is_block_mode</span> &amp;mdash; <span class='dc-title'>Returns if the specified mode outputs blocks or not</span></p> </div> <a name='function.mcrypt-module-is-block-mode.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>mcrypt_module_is_block_mode</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$mode</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$lib_dir</tt></span> ] )</div> <p class='para rdfs-comment'> This function returns <b><tt class='constant'>TRUE</tt></b> if the mode outputs blocks of bytes or <b><tt class='constant'>FALSE</tt></b> if it outputs just bytes. (e.g. <b><tt class='constant'>TRUE</tt></b> for cbc and ecb, and <b><tt class='constant'>FALSE</tt></b> for cfb and stream). </p> </div> <a name='function.mcrypt-module-is-block-mode.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The mode to check. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The optional <i><tt class='parameter'>lib_dir</tt></i> parameter can contain the location of where the algorithm module is on the system. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-is-block-mode.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> This function returns <b><tt class='constant'>TRUE</tt></b> if the mode outputs blocks of bytes or <b><tt class='constant'>FALSE</tt></b> if it outputs just bytes. (e.g. <b><tt class='constant'>TRUE</tt></b> for cbc and ecb, and <b><tt class='constant'>FALSE</tt></b> for cfb and stream). </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_module_is_block_algorithm_mode" value="<div id='function.mcrypt-module-is-block-algorithm-mode' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-module-is-block-algorithm-mode.php'>mcrypt_module_is_block_algorithm_mode</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_module_is_block_algorithm_mode</span> &amp;mdash; <span class='dc-title'>Returns if the specified module is a block algorithm or not</span></p> </div> <a name='function.mcrypt-module-is-block-algorithm-mode.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>mcrypt_module_is_block_algorithm_mode</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$mode</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$lib_dir</tt></span> ] )</div> <p class='para rdfs-comment'> This function returns <b><tt class='constant'>TRUE</tt></b> if the mode is for use with block algorithms, otherwise it returns <b><tt class='constant'>FALSE</tt></b>. (e.g. <b><tt class='constant'>FALSE</tt></b> for stream, and <b><tt class='constant'>TRUE</tt></b> for cbc, cfb, ofb). </p> </div> <a name='function.mcrypt-module-is-block-algorithm-mode.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The mode to check. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The optional <i><tt class='parameter'>lib_dir</tt></i> parameter can contain the location of where the algorithm module is on the system. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-is-block-algorithm-mode.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> This function returns <b><tt class='constant'>TRUE</tt></b> if the mode is for use with block algorithms, otherwise it returns <b><tt class='constant'>FALSE</tt></b>. (e.g. <b><tt class='constant'>FALSE</tt></b> for stream, and <b><tt class='constant'>TRUE</tt></b> for cbc, cfb, ofb). </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_module_is_block_algorithm" value="<div id='function.mcrypt-module-is-block-algorithm' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-module-is-block-algorithm.php'>mcrypt_module_is_block_algorithm</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_module_is_block_algorithm</span> &amp;mdash; <span class='dc-title'>This function checks whether the specified algorithm is a block algorithm</span></p> </div> <a name='function.mcrypt-module-is-block-algorithm.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>mcrypt_module_is_block_algorithm</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algorithm</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$lib_dir</tt></span> ] )</div> <p class='para rdfs-comment'> This function returns <b><tt class='constant'>TRUE</tt></b> if the specified algorithm is a block algorithm, or <b><tt class='constant'>FALSE</tt></b> is it is a stream algorithm. </p> </div> <a name='function.mcrypt-module-is-block-algorithm.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algorithm</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The algorithm to check. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The optional <i><tt class='parameter'>lib_dir</tt></i> parameter can contain the location of where the algorithm module is on the system. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-is-block-algorithm.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> This function returns <b><tt class='constant'>TRUE</tt></b> if the specified algorithm is a block algorithm, or <b><tt class='constant'>FALSE</tt></b> is it is a stream algorithm. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_module_get_supported_key_sizes" value="<div id='function.mcrypt-module-get-supported-key-sizes' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-module-get-supported-key-sizes.php'>mcrypt_module_get_supported_key_sizes</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_module_get_supported_key_sizes</span> &amp;mdash; <span class='dc-title'>Returns an array with the supported keysizes of the opened algorithm</span></p> </div> <a name='function.mcrypt-module-get-supported-key-sizes.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>array</span> <span class='methodname'><b>mcrypt_module_get_supported_key_sizes</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algorithm</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$lib_dir</tt></span> ] )</div> <p class='para rdfs-comment'> Returns an array with the key sizes supported by the specified algorithm. If it returns an empty array then all key sizes between 1 and <a href='http://www.php.net/manual/de/function.mcrypt-module-get-algo-key-size.php' class='function'>mcrypt_module_get_algo_key_size()</a> are supported by the algorithm. </p> </div> <a name='function.mcrypt-module-get-supported-key-sizes.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algorithm</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The algorithm to used. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The optional <i><tt class='parameter'>lib_dir</tt></i> parameter can contain the location of where the algorithm module is on the system. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-get-supported-key-sizes.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns an array with the key sizes supported by the specified algorithm. If it returns an empty array then all key sizes between 1 and <a href='http://www.php.net/manual/de/function.mcrypt-module-get-algo-key-size.php' class='function'>mcrypt_module_get_algo_key_size()</a> are supported by the algorithm. </p> </div> <a name='function.mcrypt-module-get-supported-key-sizes.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-enc-get-supported-key-sizes.php' class='function' rel='rdfs-seeAlso'>mcrypt_enc_get_supported_key_sizes()</a> - Returns an array with the supported keysizes of the opened algorithm</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_module_get_algo_key_size" value="<div id='function.mcrypt-module-get-algo-key-size' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-module-get-algo-key-size.php'>mcrypt_module_get_algo_key_size</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_module_get_algo_key_size</span> &amp;mdash; <span class='dc-title'>Returns the maximum supported keysize of the opened mode</span></p> </div> <a name='function.mcrypt-module-get-algo-key-size.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_module_get_algo_key_size</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algorithm</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$lib_dir</tt></span> ] )</div> <p class='para rdfs-comment'> Gets the maximum supported keysize of the opened mode. </p> </div> <a name='function.mcrypt-module-get-algo-key-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algorithm</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The algorithm name. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> This optional parameter can contain the location where the mode module is on the system. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-get-algo-key-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> This function returns the maximum supported key size of the algorithm specified in bytes. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_module_get_algo_block_size" value="<div id='function.mcrypt-module-get-algo-block-size' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-module-get-algo-block-size.php'>mcrypt_module_get_algo_block_size</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_module_get_algo_block_size</span> &amp;mdash; <span class='dc-title'>Returns the blocksize of the specified algorithm</span></p> </div> <a name='function.mcrypt-module-get-algo-block-size.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_module_get_algo_block_size</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algorithm</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$lib_dir</tt></span> ] )</div> <p class='para rdfs-comment'> Gets the blocksize of the specified algorithm. </p> </div> <a name='function.mcrypt-module-get-algo-block-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algorithm</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The algorithm name. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> This optional parameter can contain the location where the mode module is on the system. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-get-algo-block-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the block size of the algorithm specified in bytes. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_module_close" value="<div id='function.mcrypt-module-close' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-module-close.php'>mcrypt_module_close</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_module_close</span> &amp;mdash; <span class='dc-title'>Close the mcrypt module</span></p> </div> <a name='function.mcrypt-module-close.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>mcrypt_module_close</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> Closes the specified encryption handle. </p> </div> <a name='function.mcrypt-module-close.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-close.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt bei Erfolg <b><tt class='constant'>TRUE</tt></b> zur&amp;uuml;ck, im Fehlerfall <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.mcrypt-module-close.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-module-open.php' class='function' rel='rdfs-seeAlso'>mcrypt_module_open()</a> - Opens the module of the algorithm and the mode to be used</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_list_modes" value="<div id='function.mcrypt-list-modes' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-list-modes.php'>mcrypt_list_modes</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_list_modes</span> &amp;mdash; <span class='dc-title'>Get an array of all supported modes</span></p> </div> <a name='function.mcrypt-list-modes.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>array</span> <span class='methodname'><b>mcrypt_list_modes</b></span> ([ <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$lib_dir</tt><span class='initializer'> = ini_get(&amp;quot;mcrypt.algorithms_dir&amp;quot;)</span></span> ] )</div> <p class='para rdfs-comment'> Gets the list of all supported modes in the <i><tt class='parameter'>lib_dir</tt></i> parameter. </p> </div> <a name='function.mcrypt-list-modes.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Specifies the directory where all modes are located. If not specifies, the value of the <i>mcrypt.modes_dir</i> <var class='filename'>php.ini</var> directive is used. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-list-modes.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns an array with all the supported modes. </p> </div> <a name='function.mcrypt-list-modes.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_list_modes()</b> Example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$modes&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_list_modes</span><span style='color: #007700'>();<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach&amp;nbsp;(</span><span style='color: #0000BB'>$modes&amp;nbsp;</span><span style='color: #007700'>as&amp;nbsp;</span><span style='color: #0000BB'>$mode</span><span style='color: #007700'>)&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #DD0000'>'</span><span style='color: #0000BB'>$mode</span><span style='color: #DD0000'>&amp;nbsp;&amp;lt;br&amp;nbsp;/&amp;gt;\n'</span><span style='color: #007700'>;<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p> The above example will produce a list with all supported algorithms in the default mode directory. If it is not set with the ini directive mcrypt.modes_dir, the default directory of mcrypt is used (which is <var class='filename'>/usr/local/lib/libmcrypt</var>). </p></div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_list_algorithms" value="<div id='function.mcrypt-list-algorithms' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-list-algorithms.php'>mcrypt_list_algorithms</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_list_algorithms</span> &amp;mdash; <span class='dc-title'>Get an array of all supported ciphers</span></p> </div> <a name='function.mcrypt-list-algorithms.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>array</span> <span class='methodname'><b>mcrypt_list_algorithms</b></span> ([ <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$lib_dir</tt><span class='initializer'> = ini_get(&amp;quot;mcrypt.algorithms_dir&amp;quot;)</span></span> ] )</div> <p class='para rdfs-comment'> Gets the list of all supported algorithms in the <i><tt class='parameter'>lib_dir</tt></i> parameter. </p> </div> <a name='function.mcrypt-list-algorithms.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Specifies the directory where all algorithms are located. If not specifies, the value of the mcrypt.algorithms_dir <var class='filename'>php.ini</var> directive is used. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-list-algorithms.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns an array with all the supported algorithms. </p> </div> <a name='function.mcrypt-list-algorithms.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_list_algorithms()</b> Example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$algorithms&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_list_algorithms</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'/usr/local/lib/libmcrypt'</span><span style='color: #007700'>);<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach&amp;nbsp;(</span><span style='color: #0000BB'>$algorithms&amp;nbsp;</span><span style='color: #007700'>as&amp;nbsp;</span><span style='color: #0000BB'>$cipher</span><span style='color: #007700'>)&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #DD0000'>'</span><span style='color: #0000BB'>$cipher</span><span style='color: #DD0000'>&amp;lt;br&amp;nbsp;/&amp;gt;\n'</span><span style='color: #007700'>;<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p> The above example will produce a list with all supported algorithms in the &amp;quot;<var class='filename'>/usr/local/lib/libmcrypt</var>&amp;quot; directory. </p></div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_get_key_size" value="<div id='function.mcrypt-get-key-size' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-get-key-size.php'>mcrypt_get_key_size</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_get_key_size</span> &amp;mdash; <span class='dc-title'>Get the key size of the specified cipher</span></p> </div> <a name='function.mcrypt-get-key-size.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_get_key_size</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$cipher</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_get_key_size</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$module</tt></span> )</div> <p class='para rdfs-comment'> The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or 2.5.x. </p> <p class='para'> <b>mcrypt_get_key_size()</b> is used to get the size of a key of the specified <i><tt class='parameter'>cipher</tt></i> (in combination with an encryption mode). </p> <p class='para'> This example shows how to use this function when linked against libmcrypt 2.4.x and 2.5.x. It is more useful to use the <a href='http://www.php.net/manual/de/function.mcrypt-enc-get-key-size.php' class='function'>mcrypt_enc_get_key_size()</a> function as this uses the resource returned by <a href='http://www.php.net/manual/de/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a>. </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_get_key_size()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_get_key_size</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'tripledes'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'ecb'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;<br /></span><br />Prints:<br />24</span> </code></div> </div> </div><p> </p> <p class='para'> See also: <a href='http://www.php.net/manual/de/function.mcrypt-get-block-size.php' class='function'>mcrypt_get_block_size()</a>, <a href='http://www.php.net/manual/de/function.mcrypt-enc-get-key-size.php' class='function'>mcrypt_enc_get_key_size()</a> and <a href='http://www.php.net/manual/de/function.mcrypt-encrypt.php' class='function'>mcrypt_encrypt()</a>. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_get_iv_size" value="<div id='function.mcrypt-get-iv-size' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-get-iv-size.php'>mcrypt_get_iv_size</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_get_iv_size</span> &amp;mdash; <span class='dc-title'>Returns the size of the IV belonging to a specific cipher/mode combination</span></p> </div> <a name='function.mcrypt-get-iv-size.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_get_iv_size</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$mode</tt></span> )</div> <p class='para rdfs-comment'> Gets the size of the IV belonging to a specific <i><tt class='parameter'>cipher</tt></i> /<i><tt class='parameter'>mode</tt></i> combination. </p> <p class='para'> It is more useful to use the <a href='http://www.php.net/manual/de/function.mcrypt-enc-get-iv-size.php' class='function'>mcrypt_enc_get_iv_size()</a> function as this uses the resource returned by <a href='http://www.php.net/manual/de/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a>. </p> </div> <a name='function.mcrypt-get-iv-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>cipher</tt></i> </span> </dt><dd class='listitem'> <p class='para'> One of the <i>MCRYPT_ciphername</i> constants of the name of the algorithm as string. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> <i><tt class='parameter'>mode</tt></i> is one of the MCRYPT_MODE_modename constants or one of &amp;quot;ecb&amp;quot;, &amp;quot;cbc&amp;quot;, &amp;quot;cfb&amp;quot;, &amp;quot;ofb&amp;quot;, &amp;quot;nofb&amp;quot; or &amp;quot;stream&amp;quot;. The IV is ignored in ECB mode as this mode does not require it. You will need to have the same IV (think: starting point) both at encryption and decryption stages, otherwise your encryption will fail. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-get-iv-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the size of the Initialisation Vector (IV) in bytes. On error the function returns <b><tt class='constant'>FALSE</tt></b>. If the IV is ignored in the specified cipher/mode combination zero is returned. </p> </div> <a name='function.mcrypt-get-iv-size.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_get_iv_size()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_get_iv_size</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MCRYPT_CAST_256</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_MODE_CFB</span><span style='color: #007700'>)&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_get_iv_size</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'des'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'ecb'</span><span style='color: #007700'>)&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.mcrypt-get-iv-size.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-get-block-size.php' class='function' rel='rdfs-seeAlso'>mcrypt_get_block_size()</a> - Get the block size of the specified cipher</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-enc-get-iv-size.php' class='function' rel='rdfs-seeAlso'>mcrypt_enc_get_iv_size()</a> - Returns the size of the IV of the opened algorithm</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-create-iv.php' class='function' rel='rdfs-seeAlso'>mcrypt_create_iv()</a> - Create an initialization vector (IV) from a random source</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_get_cipher_name" value="<div id='function.mcrypt-get-cipher-name' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-get-cipher-name.php'>mcrypt_get_cipher_name</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_get_cipher_name</span> &amp;mdash; <span class='dc-title'>Get the name of the specified cipher</span></p> </div> <a name='function.mcrypt-get-cipher-name.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_get_cipher_name</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$cipher</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_get_cipher_name</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$cipher</tt></span> )</div> <p class='para rdfs-comment'> <b>mcrypt_get_cipher_name()</b> is used to get the name of the specified cipher. </p> <p class='para'> <b>mcrypt_get_cipher_name()</b> takes the cipher number as an argument (libmcrypt 2.2.x) or takes the cipher name as an argument (libmcrypt 2.4.x or higher) and returns the name of the cipher or <b><tt class='constant'>FALSE</tt></b>, if the cipher does not exist. </p> </div> <a name='function.mcrypt-get-cipher-name.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>cipher</tt></i> </span> </dt><dd class='listitem'> <p class='para'> One of the <i>MCRYPT_ciphername</i> constants or the name of the algorithm as string. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-get-cipher-name.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> This function returns the name of the cipher or <b><tt class='constant'>FALSE</tt></b>, if the cipher does not exist. </p> </div> <a name='function.mcrypt-get-cipher-name.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_get_cipher_name()</b> Example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;$cipher&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_TripleDES</span><span style='color: #007700'>;<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_get_cipher_name</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$cipher</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 3DES </pre></div> </div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_get_block_size" value="<div id='function.mcrypt-get-block-size' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-get-block-size.php'>mcrypt_get_block_size</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_get_block_size</span> &amp;mdash; <span class='dc-title'>Get the block size of the specified cipher</span></p> </div> <a name='function.mcrypt-get-block-size.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_get_block_size</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$cipher</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_get_block_size</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$module</tt></span> )</div> <p class='para rdfs-comment'> The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or 2.5.x. </p> <p class='para'> <b>mcrypt_get_block_size()</b> is used to get the size of a block of the specified <i><tt class='parameter'>cipher</tt></i> (in combination with an encryption mode). </p> <p class='para'> It is more useful to use the <a href='http://www.php.net/manual/de/function.mcrypt-enc-get-block-size.php' class='function'>mcrypt_enc_get_block_size()</a> function as this uses the resource returned by <a href='http://www.php.net/manual/de/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a>. </p> </div> <a name='function.mcrypt-get-block-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>cipher</tt></i> </span> </dt><dd class='listitem'> <p class='para'> One of the <i>MCRYPT_ciphername</i> constants or the name of the algorithm as string. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>module</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The module. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-get-block-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gets the block size, as an integer. </p> </div> <a name='function.mcrypt-get-block-size.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_get_block_size()</b> example</b></p> <div class='example-contents para'><p> This example shows how to use this function when linked against libmcrypt 2.4.x and 2.5.x. </p></div> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /><br /></span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_get_block_size</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'tripledes'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'ecb'</span><span style='color: #007700'>);&amp;nbsp;</span><span style='color: #FF8000'>//&amp;nbsp;8<br /><br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.mcrypt-get-block-size.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-get-key-size.php' class='function' rel='rdfs-seeAlso'>mcrypt_get_key_size()</a> - Get the key size of the specified cipher</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-enc-get-block-size.php' class='function' rel='rdfs-seeAlso'>mcrypt_enc_get_block_size()</a> - Returns the blocksize of the opened algorithm</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-encrypt.php' class='function' rel='rdfs-seeAlso'>mcrypt_encrypt()</a> - Encrypts plaintext with given parameters</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_generic_init" value="<div id='function.mcrypt-generic-init' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-generic-init.php'>mcrypt_generic_init</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_generic_init</span> &amp;mdash; <span class='dc-title'>This function initializes all buffers needed for encryption</span></p> </div> <a name='function.mcrypt-generic-init.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_generic_init</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$iv</tt></span> )</div> <p class='para rdfs-comment'> You need to call this function before every call to <a href='http://www.php.net/manual/de/function.mcrypt-generic.php' class='function'>mcrypt_generic()</a> or <a href='http://www.php.net/manual/de/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</a>. </p> </div> <a name='function.mcrypt-generic-init.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The maximum length of the key should be the one obtained by calling <a href='http://www.php.net/manual/de/function.mcrypt-enc-get-key-size.php' class='function'>mcrypt_enc_get_key_size()</a> and every value smaller than this is legal. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>iv</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The IV should normally have the size of the algorithms block size, but you must obtain the size by calling <a href='http://www.php.net/manual/de/function.mcrypt-enc-get-iv-size.php' class='function'>mcrypt_enc_get_iv_size()</a>. IV is ignored in ECB. IV MUST exist in CFB, CBC, STREAM, nOFB and OFB modes. It needs to be random and unique (but not secret). The same IV must be used for encryption/decryption. If you do not want to use it you should set it to zeros, but this is not recommended. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-generic-init.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> The function returns a negative value on error, -3 when the key length was incorrect, -4 when there was a memory allocation problem and any other return value is an unknown error. If an error occurs a warning will be displayed accordingly. <b><tt class='constant'>FALSE</tt></b> is returned if incorrect parameters were passed. </p> </div> <a name='function.mcrypt-generic-init.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-module-open.php' class='function' rel='rdfs-seeAlso'>mcrypt_module_open()</a> - Opens the module of the algorithm and the mode to be used</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_generic_end" value="<div id='function.mcrypt-generic-end' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-generic-end.php'>mcrypt_generic_end</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5 &amp;lt;= 5.1.6)</p><p class='refpurpose'><span class='refname'>mcrypt_generic_end</span> &amp;mdash; <span class='dc-title'>This function terminates encryption</span></p> </div> <a name='function.mcrypt-generic-end.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>mcrypt_generic_end</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> <div class='warning'><b class='warning'>Warnung</b> <p class='para'> This function is deprecated, use <a href='http://www.php.net/manual/de/function.mcrypt-generic-deinit.php' class='function'>mcrypt_generic_deinit()</a> instead. It can cause crashes when used with <a href='http://www.php.net/manual/de/function.mcrypt-module-close.php' class='function'>mcrypt_module_close()</a> due to multiple buffer frees. </p> </div> </p> <p class='para'> This function terminates encryption specified by the encryption descriptor (<i><tt class='parameter'>td</tt></i> ). Actually it clears all buffers, and closes all the modules used. Returns <b><tt class='constant'>FALSE</tt></b> on error, or <b><tt class='constant'>TRUE</tt></b> on success. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_generic_deinit" value="<div id='function.mcrypt-generic-deinit' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-generic-deinit.php'>mcrypt_generic_deinit</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.7, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_generic_deinit</span> &amp;mdash; <span class='dc-title'>This function deinitializes an encryption module</span></p> </div> <a name='function.mcrypt-generic-deinit.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>mcrypt_generic_deinit</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> This function terminates encryption specified by the encryption descriptor (<i><tt class='parameter'>td</tt></i> ). It clears all buffers, but does not close the module. You need to call <a href='http://www.php.net/manual/de/function.mcrypt-module-close.php' class='function'>mcrypt_module_close()</a> yourself. (But PHP does this for you at the end of the script.) </p> </div> <a name='function.mcrypt-generic-deinit.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-generic-deinit.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt bei Erfolg <b><tt class='constant'>TRUE</tt></b> zur&amp;uuml;ck, im Fehlerfall <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.mcrypt-generic-deinit.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-module-open.php' class='function' rel='rdfs-seeAlso'>mcrypt_module_open()</a> - Opens the module of the algorithm and the mode to be used</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-generic-init.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_init()</a> - This function initializes all buffers needed for encryption</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_generic" value="<div id='function.mcrypt-generic' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-generic.php'>mcrypt_generic</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_generic</span> &amp;mdash; <span class='dc-title'>This function encrypts data</span></p> </div> <a name='function.mcrypt-generic.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_generic</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> )</div> <p class='para rdfs-comment'> This function encrypts data. The data is padded with &amp;quot;<i>\0</i>&amp;quot; to make sure the length of the data is n * blocksize. This function returns the encrypted data. Note that the length of the returned string can in fact be longer then the input, due to the padding of the data. </p> <p class='para'> If you want to store the encrypted data in a database make sure to store the entire string as returned by mcrypt_generic, or the string will not entirely decrypt properly. If your original string is 10 characters long and the block size is 8 (use <a href='http://www.php.net/manual/de/function.mcrypt-enc-get-block-size.php' class='function'>mcrypt_enc_get_block_size()</a> to determine the blocksize), you would need at least 16 characters in your database field. Note the string returned by <a href='http://www.php.net/manual/de/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</a> will be 16 characters as well...use rtrim($str, &amp;quot;\0&amp;quot;) to remove the padding. </p> <p class='para'> If you are for example storing the data in a MySQL database remember that varchar fields automatically have trailing spaces removed during insertion. As encrypted data can end in a space (ASCII 32), the data will be damaged by this removal. Store data in a tinyblob/tinytext (or larger) field instead. </p> </div> <a name='function.mcrypt-generic.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> <p class='para'> The encryption handle should always be initialized with <a href='http://www.php.net/manual/de/function.mcrypt-generic-init.php' class='function'>mcrypt_generic_init()</a> with a key and an IV before calling this function. Where the encryption is done, you should free the encryption buffers by calling <a href='http://www.php.net/manual/de/function.mcrypt-generic-deinit.php' class='function'>mcrypt_generic_deinit()</a>. See <a href='http://www.php.net/manual/de/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a> for an example. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The data to encrypt. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-generic.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the encrypted data. </p> </div> <a name='function.mcrypt-generic.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.mdecrypt-generic.php' class='function' rel='rdfs-seeAlso'>mdecrypt_generic()</a> - Decrypt data</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-generic-init.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_init()</a> - This function initializes all buffers needed for encryption</li> <li class='member'><a href='http://www.php.net/manual/de/function.mcrypt-generic-deinit.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_deinit()</a> - This function deinitializes an encryption module</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_enc_self_test" value="<div id='function.mcrypt-enc-self-test' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-enc-self-test.php'>mcrypt_enc_self_test</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_enc_self_test</span> &amp;mdash; <span class='dc-title'>Runs a self test on the opened module</span></p> </div> <a name='function.mcrypt-enc-self-test.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_enc_self_test</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> This function runs the self test on the algorithm specified by the descriptor <i><tt class='parameter'>td</tt></i> . </p> </div> <a name='function.mcrypt-enc-self-test.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-self-test.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> If the self test succeeds it returns <b><tt class='constant'>FALSE</tt></b>. In case of an error, it returns <b><tt class='constant'>TRUE</tt></b>. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_enc_is_block_mode" value="<div id='function.mcrypt-enc-is-block-mode' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-enc-is-block-mode.php'>mcrypt_enc_is_block_mode</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_enc_is_block_mode</span> &amp;mdash; <span class='dc-title'>Checks whether the opened mode outputs blocks</span></p> </div> <a name='function.mcrypt-enc-is-block-mode.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>mcrypt_enc_is_block_mode</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> Tells whether the opened mode outputs blocks (e.g. <b><tt class='constant'>TRUE</tt></b> for cbc and ecb, and <b><tt class='constant'>FALSE</tt></b> for cfb and stream). </p> </div> <a name='function.mcrypt-enc-is-block-mode.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-is-block-mode.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns <b><tt class='constant'>TRUE</tt></b> if the mode outputs blocks of bytes or <b><tt class='constant'>FALSE</tt></b> if it outputs bytes. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_enc_is_block_algorithm_mode" value="<div id='function.mcrypt-enc-is-block-algorithm-mode' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-enc-is-block-algorithm-mode.php'>mcrypt_enc_is_block_algorithm_mode</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_enc_is_block_algorithm_mode</span> &amp;mdash; <span class='dc-title'>Checks whether the encryption of the opened mode works on blocks</span></p> </div> <a name='function.mcrypt-enc-is-block-algorithm-mode.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>mcrypt_enc_is_block_algorithm_mode</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> Tells whether the algorithm of the opened mode works on blocks (e.g. <b><tt class='constant'>FALSE</tt></b> for stream, and <b><tt class='constant'>TRUE</tt></b> for cbc, cfb, ofb).. </p> </div> <a name='function.mcrypt-enc-is-block-algorithm-mode.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-is-block-algorithm-mode.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns <b><tt class='constant'>TRUE</tt></b> if the mode is for use with block algorithms, otherwise it returns <b><tt class='constant'>FALSE</tt></b>. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_enc_is_block_algorithm" value="<div id='function.mcrypt-enc-is-block-algorithm' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-enc-is-block-algorithm.php'>mcrypt_enc_is_block_algorithm</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_enc_is_block_algorithm</span> &amp;mdash; <span class='dc-title'>Checks whether the algorithm of the opened mode is a block algorithm</span></p> </div> <a name='function.mcrypt-enc-is-block-algorithm.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>mcrypt_enc_is_block_algorithm</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> Tells whether the algorithm of the opened mode is a block algorithm. </p> </div> <a name='function.mcrypt-enc-is-block-algorithm.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-is-block-algorithm.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns <b><tt class='constant'>TRUE</tt></b> if the algorithm is a block algorithm or <b><tt class='constant'>FALSE</tt></b> if it is a stream one. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_enc_get_supported_key_sizes" value="<div id='function.mcrypt-enc-get-supported-key-sizes' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-enc-get-supported-key-sizes.php'>mcrypt_enc_get_supported_key_sizes</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_enc_get_supported_key_sizes</span> &amp;mdash; <span class='dc-title'>Returns an array with the supported keysizes of the opened algorithm</span></p> </div> <a name='function.mcrypt-enc-get-supported-key-sizes.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>array</span> <span class='methodname'><b>mcrypt_enc_get_supported_key_sizes</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> Gets the supported key sizes of the opened algorithm. </p> </div> <a name='function.mcrypt-enc-get-supported-key-sizes.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-supported-key-sizes.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns an array with the key sizes supported by the algorithm specified by the encryption descriptor. If it returns an empty array then all key sizes between 1 and <a href='http://www.php.net/manual/de/function.mcrypt-enc-get-key-size.php' class='function'>mcrypt_enc_get_key_size()</a> are supported by the algorithm. </p> </div> <a name='function.mcrypt-enc-get-supported-key-sizes.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_enc_get_supported_key_sizes()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$td&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_open</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'rijndael-256'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'ecb'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>var_dump</span><span style='color: #007700'>(</span><span style='color: #0000BB'>mcrypt_enc_get_supported_key_sizes</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>));<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p> This will print: </p></div> <div class='example-contents screen'> <div class='cdata'><pre> array(3) { [0]=&amp;gt; int(16) [1]=&amp;gt; int(24) [2]=&amp;gt; int(32) } </pre></div> </div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_enc_get_modes_name" value="<div id='function.mcrypt-enc-get-modes-name' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-enc-get-modes-name.php'>mcrypt_enc_get_modes_name</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_enc_get_modes_name</span> &amp;mdash; <span class='dc-title'>Returns the name of the opened mode</span></p> </div> <a name='function.mcrypt-enc-get-modes-name.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_enc_get_modes_name</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> This function returns the name of the mode. </p> </div> <a name='function.mcrypt-enc-get-modes-name.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-modes-name.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the name as a string. </p> </div> <a name='function.mcrypt-enc-get-modes-name.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_enc_get_modes_name()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$td&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_open&amp;nbsp;</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MCRYPT_CAST_256</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_MODE_CFB</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_enc_get_modes_name</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>).&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br /><br /></span><span style='color: #0000BB'>$td&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_open&amp;nbsp;</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'cast-256'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'ecb'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_enc_get_modes_name</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>).&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> CFB ECB </pre></div> </div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_enc_get_key_size" value="<div id='function.mcrypt-enc-get-key-size' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-enc-get-key-size.php'>mcrypt_enc_get_key_size</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_enc_get_key_size</span> &amp;mdash; <span class='dc-title'>Returns the maximum supported keysize of the opened mode</span></p> </div> <a name='function.mcrypt-enc-get-key-size.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_enc_get_key_size</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> Gets the maximum supported key size of the algorithm in bytes. </p> </div> <a name='function.mcrypt-enc-get-key-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-key-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the maximum supported key size of the algorithm in bytes. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_enc_get_iv_size" value="<div id='function.mcrypt-enc-get-iv-size' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-enc-get-iv-size.php'>mcrypt_enc_get_iv_size</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_enc_get_iv_size</span> &amp;mdash; <span class='dc-title'>Returns the size of the IV of the opened algorithm</span></p> </div> <a name='function.mcrypt-enc-get-iv-size.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_enc_get_iv_size</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> This function returns the size of the IV of the algorithm specified by the encryption descriptor in bytes. An IV is used in cbc, cfb and ofb modes, and in some algorithms in stream mode. </p> </div> <a name='function.mcrypt-enc-get-iv-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-iv-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the size of the IV, or 0 if the IV is ignored in the algorithm. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_enc_get_block_size" value="<div id='function.mcrypt-enc-get-block-size' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-enc-get-block-size.php'>mcrypt_enc_get_block_size</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_enc_get_block_size</span> &amp;mdash; <span class='dc-title'>Returns the blocksize of the opened algorithm</span></p> </div> <a name='function.mcrypt-enc-get-block-size.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>mcrypt_enc_get_block_size</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> Gets the blocksize of the opened algorithm. </p> </div> <a name='function.mcrypt-enc-get-block-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-block-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the block size of the specified algorithm in bytes. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_enc_get_algorithms_name" value="<div id='function.mcrypt-enc-get-algorithms-name' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-enc-get-algorithms-name.php'>mcrypt_enc_get_algorithms_name</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_enc_get_algorithms_name</span> &amp;mdash; <span class='dc-title'>Returns the name of the opened algorithm</span></p> </div> <a name='function.mcrypt-enc-get-algorithms-name.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_enc_get_algorithms_name</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$td</tt></span> )</div> <p class='para rdfs-comment'> This function returns the name of the algorithm. </p> </div> <a name='function.mcrypt-enc-get-algorithms-name.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>td</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encryption descriptor. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-algorithms-name.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the name of the opened algorithm as a string. </p> </div> <a name='function.mcrypt-enc-get-algorithms-name.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_enc_get_algorithms_name()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$td&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_open</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MCRYPT_CAST_256</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_MODE_CFB</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_enc_get_algorithms_name</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>).&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br /><br /></span><span style='color: #0000BB'>$td&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_module_open</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'cast-256'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_MODE_CFB</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_enc_get_algorithms_name</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$td</span><span style='color: #007700'>).&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> CAST-256 CAST-256 </pre></div> </div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_encrypt" value="<div id='function.mcrypt-encrypt' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-encrypt.php'>mcrypt_encrypt</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_encrypt</span> &amp;mdash; <span class='dc-title'>Encrypts plaintext with given parameters</span></p> </div> <a name='function.mcrypt-encrypt.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_encrypt</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$mode</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$iv</tt></span> ] )</div> <p class='para rdfs-comment'> Encrypts the data and returns it. </p> </div> <a name='function.mcrypt-encrypt.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>cipher</tt></i> </span> </dt><dd class='listitem'> <p class='para'> One of the <i>MCRYPT_ciphername</i> constants of the name of the algorithm as string. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The key with which the data will be encrypted. If it&amp;#039;s smaller that the required keysize, it is padded with &amp;#039;<i>\0</i>&amp;#039;. It is better not to use ASCII strings for keys. </p> <p class='para'> It is recommended to use the mhash functions to create a key from a string. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The data that will be encrypted with the given cipher and mode. If the size of the data is not n * blocksize, the data will be padded with &amp;#039;<i>\0</i>&amp;#039;. </p> <p class='para'> The returned crypttext can be larger that the size of the data that is given by <i><tt class='parameter'>data</tt></i> . </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> One of the <i>MCRYPT_MODE_modename</i> constants of one of &amp;quot;ecb&amp;quot;, &amp;quot;cbc&amp;quot;, &amp;quot;cfb&amp;quot;, &amp;quot;ofb&amp;quot;, &amp;quot;nofb&amp;quot; or &amp;quot;stream&amp;quot;. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>iv</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Used for the initialisation in CBC, CFB, OFB modes, and in some algorithms in STREAM mode. If you do not supply an IV, while it is needed for an algorithm, the function issues a warning and uses an IV with all bytes set to &amp;#039;<i>\0</i>&amp;#039;. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-encrypt.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the encrypted data, as a string. </p> </div> <a name='function.mcrypt-encrypt.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_encrypt()</b> Example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$iv_size&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_get_iv_size</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MCRYPT_RIJNDAEL_256</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_MODE_ECB</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$iv&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_create_iv</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$iv_size</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_RAND</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$key&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'This&amp;nbsp;is&amp;nbsp;a&amp;nbsp;very&amp;nbsp;secret&amp;nbsp;key'</span><span style='color: #007700'>;<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$text&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'Meet&amp;nbsp;me&amp;nbsp;at&amp;nbsp;11&amp;nbsp;o'clock&amp;nbsp;behind&amp;nbsp;the&amp;nbsp;monument.'</span><span style='color: #007700'>;<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #0000BB'>strlen</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$text</span><span style='color: #007700'>)&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$crypttext&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_encrypt</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MCRYPT_RIJNDAEL_256</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$key</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$text</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_MODE_ECB</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$iv</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #0000BB'>strlen</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$crypttext</span><span style='color: #007700'>)&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 42 64 </pre></div> </div> </div><p> </p> <p class='para'> See also <a href='http://www.php.net/manual/de/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a> for a more advanced API and an example. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_ecb" value="<div id='function.mcrypt-ecb' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-ecb.php'>mcrypt_ecb</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_ecb</span> &amp;mdash; <span class='dc-title'>Deprecated: Encrypt/decrypt data in ECB mode</span></p> </div> <a name='function.mcrypt-ecb.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_ecb</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$mode</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_ecb</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$mode</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$iv</tt></span> ] )</div> <p class='para rdfs-comment'> The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or higher. The <i><tt class='parameter'>mode</tt></i> should be either <b><tt class='constant'>MCRYPT_ENCRYPT</tt></b> or <b><tt class='constant'>MCRYPT_DECRYPT</tt></b>. </p> <p class='para'> This function is deprecated and should not be used anymore, see <a href='http://www.php.net/manual/de/function.mcrypt-generic.php' class='function'>mcrypt_generic()</a> and <a href='http://www.php.net/manual/de/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</a> for replacements. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_decrypt" value="<div id='function.mcrypt-decrypt' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-decrypt.php'>mcrypt_decrypt</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.2, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_decrypt</span> &amp;mdash; <span class='dc-title'>Decrypts crypttext with given parameters</span></p> </div> <a name='function.mcrypt-decrypt.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_decrypt</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$mode</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$iv</tt></span> ] )</div> <p class='para rdfs-comment'> Decrypts the <i><tt class='parameter'>data</tt></i> and returns the unencrypted data. </p> </div> <a name='function.mcrypt-decrypt.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>cipher</tt></i> </span> </dt><dd class='listitem'> <p class='para'> <i><tt class='parameter'>cipher</tt></i> is one of the MCRYPT_ciphername constants of the name of the algorithm as string. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> <i><tt class='parameter'>key</tt></i> is the key with which the data is encrypted. If it&amp;#039;s smaller that the required keysize, it is padded with &amp;#039;<i>\0</i>&amp;#039;. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> <i><tt class='parameter'>data</tt></i> is the data that will be decrypted with the given cipher and mode. If the size of the data is not n * blocksize, the data will be padded with &amp;#039;<i>\0</i>&amp;#039;. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> <i><tt class='parameter'>mode</tt></i> is one of the MCRYPT_MODE_modename constants of one of &amp;quot;ecb&amp;quot;, &amp;quot;cbc&amp;quot;, &amp;quot;cfb&amp;quot;, &amp;quot;ofb&amp;quot;, &amp;quot;nofb&amp;quot; or &amp;quot;stream&amp;quot;. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>iv</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The <i><tt class='parameter'>iv</tt></i> parameter is used for the initialisation in CBC, CFB, OFB modes, and in some algorithms in STREAM mode. If you do not supply an IV, while it is needed for an algorithm, the function issues a warning and uses an IV with all bytes set to &amp;#039;<i>\0</i>&amp;#039;. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-decrypt.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the decrypted data as a string. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_create_iv" value="<div id='function.mcrypt-create-iv' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-create-iv.php'>mcrypt_create_iv</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_create_iv</span> &amp;mdash; <span class='dc-title'>Create an initialization vector (IV) from a random source</span></p> </div> <a name='function.mcrypt-create-iv.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_create_iv</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$size</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$source</tt><span class='initializer'> = MCRYPT_DEV_RANDOM</span></span> ] )</div> <p class='para rdfs-comment'> Create an initialization vector (IV) from a random source. </p> <p class='para'> The IV is only meant to give an alternative seed to the encryption routines. This IV does not need to be secret at all, though it can be desirable. You even can send it along with your ciphertext without losing security. </p> </div> <a name='function.mcrypt-create-iv.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>size</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Determines the size of the IV, parameter <i><tt class='parameter'>source</tt></i> (defaults to random value) specifies the source of the IV. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>source</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The source can be <b><tt class='constant'>MCRYPT_RAND</tt></b> (system random number generator), <b><tt class='constant'>MCRYPT_DEV_RANDOM</tt></b> (read data from <var class='filename'>/dev/random</var>) and <b><tt class='constant'>MCRYPT_DEV_URANDOM</tt></b> (read data from <var class='filename'>/dev/urandom</var>). <b><tt class='constant'>MCRYPT_RAND</tt></b> is the only one supported on Windows because Windows (of course) doesn&amp;#039;t have <var class='filename'>/dev/random</var> or <var class='filename'>/dev/urandom</var>. </p> <blockquote><p><b class='note'>Hinweis</b>: When using <b><tt class='constant'>MCRYPT_RAND</tt></b>, remember to call <a href='http://www.php.net/manual/de/function.srand.php' class='function'>srand()</a> before <b>mcrypt_create_iv()</b> to initialize the random number generator; it is not seeded automatically like <a href='http://www.php.net/manual/de/function.rand.php' class='function'>rand()</a> is. <br /> </p></blockquote> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-create-iv.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns the initialization vector, or <b><tt class='constant'>FALSE</tt></b> on error. </p> </div> <a name='function.mcrypt-create-iv.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>mcrypt_create_iv()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$size&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_get_iv_size</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MCRYPT_CAST_256</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_MODE_CFB</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$iv&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>mcrypt_create_iv</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$size</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_DEV_RANDOM</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.mcrypt-create-iv.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.ciphersbyritter.com/GLOSSARY.HTM#IV' class='link external'>&amp;raquo; http://www.ciphersbyritter.com/GLOSSARY.HTM#IV</a></li> <li class='member'><a href='http://www.quadibloc.com/crypto/co0409.htm' class='link external'>&amp;raquo; http://www.quadibloc.com/crypto/co0409.htm</a></li> <li class='member'>Chapter 9.3 of Applied Cryptography by Schneier (ISBN 0-471-11709-9)</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_cfb" value="<div id='function.mcrypt-cfb' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-cfb.php'>mcrypt_cfb</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_cfb</span> &amp;mdash; <span class='dc-title'>Encrypt/decrypt data in CFB mode</span></p> </div> <a name='function.mcrypt-cfb.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_cfb</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$mode</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$iv</tt></span> )</div> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_cfb</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$mode</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$iv</tt></span> ] )</div> <p class='para rdfs-comment'> The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or higher. The <i><tt class='parameter'>mode</tt></i> should be either <b><tt class='constant'>MCRYPT_ENCRYPT</tt></b> or <b><tt class='constant'>MCRYPT_DECRYPT</tt></b>. </p> <p class='para'> This function should not be used anymore, see <a href='http://www.php.net/manual/de/function.mcrypt-generic.php' class='function'>mcrypt_generic()</a> and <a href='http://www.php.net/manual/de/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</a> for replacements. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="mcrypt_cbc" value="<div id='function.mcrypt-cbc' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.mcrypt-cbc.php'>mcrypt_cbc</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>mcrypt_cbc</span> &amp;mdash; <span class='dc-title'>Encrypt/decrypt data in CBC mode</span></p> </div> <a name='function.mcrypt-cbc.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_cbc</b></span> ( <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$mode</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$iv</tt></span> ] )</div> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>mcrypt_cbc</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$cipher</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$mode</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$iv</tt></span> ] )</div> <p class='para rdfs-comment'> The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or higher. The <i><tt class='parameter'>mode</tt></i> should be either <b><tt class='constant'>MCRYPT_ENCRYPT</tt></b> or <b><tt class='constant'>MCRYPT_DECRYPT</tt></b>. </p> <p class='para'> This function should not be used anymore, see <a href='http://www.php.net/manual/de/function.mcrypt-generic.php' class='function'>mcrypt_generic()</a> and <a href='http://www.php.net/manual/de/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</a> for replacements. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="hash_update_stream" value="<div id='function.hash-update-stream' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.hash-update-stream.php'>hash_update_stream</a></h1> <p class='verinfo'>(PHP 5 &amp;gt;= 5.1.2, PECL hash &amp;gt;= 1.1)</p><p class='refpurpose'><span class='refname'>hash_update_stream</span> &amp;mdash; <span class='dc-title'>Pump data into an active hashing context from an open stream</span></p> </div> <a name='function.hash-update-stream.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>hash_update_stream</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$context</tt></span> , <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$handle</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$length</tt><span class='initializer'> = -1</span></span> ] )</div> </div> <a name='function.hash-update-stream.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>context</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Hashing context returned by <a href='http://www.php.net/manual/de/function.hash-init.php' class='function'>hash_init()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>handle</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Open file handle as returned by any stream creation function. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Maximum number of characters to copy from <i><tt class='parameter'>handle</tt></i> into the hashing context. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-update-stream.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Actual number of bytes added to the hashing context from <i><tt class='parameter'>handle</tt></i> . </p> </div> <a name='function.hash-update-stream.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>hash_update_stream()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$fp&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>tmpfile</span><span style='color: #007700'>();<br /></span><span style='color: #0000BB'>fwrite</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$fp</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'The&amp;nbsp;quick&amp;nbsp;brown&amp;nbsp;fox&amp;nbsp;jumped&amp;nbsp;over&amp;nbsp;the&amp;nbsp;lazy&amp;nbsp;dog.'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>rewind</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$fp</span><span style='color: #007700'>);<br /><br /></span><span style='color: #0000BB'>$ctx&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>hash_init</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'md5'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>hash_update_stream</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$ctx</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$fp</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>hash_final</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$ctx</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 5c6ffbdd40d9556b73a21e63c3e0e904 </pre></div> </div> </div><p> </p> </div> <a name='function.hash-update-stream.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialize an incremental hashing context</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-update.php' class='function' rel='rdfs-seeAlso'>hash_update()</a> - Pump data into an active hashing context</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-final.php' class='function' rel='rdfs-seeAlso'>hash_final()</a> - Finalize an incremental hash and return resulting digest</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash.php' class='function' rel='rdfs-seeAlso'>hash()</a> - Generate a hash value (message digest)</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-file.php' class='function' rel='rdfs-seeAlso'>hash_file()</a> - Generate a hash value using the contents of a given file</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="hash_update_file" value="<div id='function.hash-update-file' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.hash-update-file.php'>hash_update_file</a></h1> <p class='verinfo'>(PHP 5 &amp;gt;= 5.1.2, PECL hash &amp;gt;= 1.1)</p><p class='refpurpose'><span class='refname'>hash_update_file</span> &amp;mdash; <span class='dc-title'>Pump data into an active hashing context from a file</span></p> </div> <a name='function.hash-update-file.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>hash_update_file</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$context</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$filename</tt></span> [, <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$context</tt><span class='initializer'> = NULL</span></span> ] )</div> </div> <a name='function.hash-update-file.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>context</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Hashing context returned by <a href='http://www.php.net/manual/de/function.hash-init.php' class='function'>hash_init()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>filename</tt></i> </span> </dt><dd class='listitem'> <p class='para'> URL describing location of file to be hashed; Supports fopen wrappers. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>context</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Stream context as returned by <a href='http://www.php.net/manual/de/function.stream-context-create.php' class='function'>stream_context_create()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-update-file.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt bei Erfolg <b><tt class='constant'>TRUE</tt></b> zur&amp;uuml;ck, im Fehlerfall <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.hash-update-file.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialize an incremental hashing context</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-update.php' class='function' rel='rdfs-seeAlso'>hash_update()</a> - Pump data into an active hashing context</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-update-stream.php' class='function' rel='rdfs-seeAlso'>hash_update_stream()</a> - Pump data into an active hashing context from an open stream</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-final.php' class='function' rel='rdfs-seeAlso'>hash_final()</a> - Finalize an incremental hash and return resulting digest</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash.php' class='function' rel='rdfs-seeAlso'>hash()</a> - Generate a hash value (message digest)</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-file.php' class='function' rel='rdfs-seeAlso'>hash_file()</a> - Generate a hash value using the contents of a given file</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="hash_update" value="<div id='function.hash-update' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.hash-update.php'>hash_update</a></h1> <p class='verinfo'>(PHP 5 &amp;gt;= 5.1.2, PECL hash &amp;gt;= 1.1)</p><p class='refpurpose'><span class='refname'>hash_update</span> &amp;mdash; <span class='dc-title'>Pump data into an active hashing context</span></p> </div> <a name='function.hash-update.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>hash_update</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$context</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> )</div> </div> <a name='function.hash-update.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>context</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Hashing context returned by <a href='http://www.php.net/manual/de/function.hash-init.php' class='function'>hash_init()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Message to be included in the hash digest. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-update.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns <b><tt class='constant'>TRUE</tt></b>. </p> </div> <a name='function.hash-update.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialize an incremental hashing context</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-update-file.php' class='function' rel='rdfs-seeAlso'>hash_update_file()</a> - Pump data into an active hashing context from a file</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-update-stream.php' class='function' rel='rdfs-seeAlso'>hash_update_stream()</a> - Pump data into an active hashing context from an open stream</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-final.php' class='function' rel='rdfs-seeAlso'>hash_final()</a> - Finalize an incremental hash and return resulting digest</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="hash_init" value="<div id='function.hash-init' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.hash-init.php'>hash_init</a></h1> <p class='verinfo'>(PHP 5 &amp;gt;= 5.1.2, PECL hash &amp;gt;= 1.1)</p><p class='refpurpose'><span class='refname'>hash_init</span> &amp;mdash; <span class='dc-title'>Initialize an incremental hashing context</span></p> </div> <a name='function.hash-init.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>resource</span> <span class='methodname'><b>hash_init</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algo</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$options</tt><span class='initializer'> = 0</span></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt><span class='initializer'> = NULL</span></span> ]] )</div> </div> <a name='function.hash-init.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algo</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Name of selected hashing algorithm (i.e. &amp;quot;md5&amp;quot;, &amp;quot;sha256&amp;quot;, &amp;quot;haval160,4&amp;quot;, etc..) </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>options</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Optional settings for hash generation, currently supports only one option: <b><tt class='constant'>HASH_HMAC</tt></b>. When specified, the <i><tt class='parameter'>key</tt></i> <em class='emphasis'>must</em> be specified. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> When <b><tt class='constant'>HASH_HMAC</tt></b> is specified for <i><tt class='parameter'>options</tt></i> , a shared secret key to be used with the HMAC hashing method must be supplied in this parameter. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-init.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns a Hashing Context resource for use with <a href='http://www.php.net/manual/de/function.hash-update.php' class='function'>hash_update()</a>, <a href='http://www.php.net/manual/de/function.hash-update-stream.php' class='function'>hash_update_stream()</a>, <a href='http://www.php.net/manual/de/function.hash-update-file.php' class='function'>hash_update_file()</a>, and <a href='http://www.php.net/manual/de/function.hash-final.php' class='function'>hash_final()</a>. </p> </div> <a name='function.hash-init.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 Incremental hashing example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$ctx&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>hash_init</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'md5'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>hash_update</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$ctx</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'The&amp;nbsp;quick&amp;nbsp;brown&amp;nbsp;fox&amp;nbsp;'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>hash_update</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$ctx</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'jumped&amp;nbsp;over&amp;nbsp;the&amp;nbsp;lazy&amp;nbsp;dog.'</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>hash_final</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$ctx</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 5c6ffbdd40d9556b73a21e63c3e0e904 </pre></div> </div> </div><p> </p> </div> <a name='function.hash-init.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.hash.php' class='function' rel='rdfs-seeAlso'>hash()</a> - Generate a hash value (message digest)</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-file.php' class='function' rel='rdfs-seeAlso'>hash_file()</a> - Generate a hash value using the contents of a given file</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-hmac.php' class='function' rel='rdfs-seeAlso'>hash_hmac()</a> - Generate a keyed hash value using the HMAC method</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-hmac-file.php' class='function' rel='rdfs-seeAlso'>hash_hmac_file()</a> - Generate a keyed hash value using the HMAC method and the contents of a given file</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="hash_hmac_file" value="<div id='function.hash-hmac-file' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.hash-hmac-file.php'>hash_hmac_file</a></h1> <p class='verinfo'>(PHP 5 &amp;gt;= 5.1.2, PECL hash &amp;gt;= 1.1)</p><p class='refpurpose'><span class='refname'>hash_hmac_file</span> &amp;mdash; <span class='dc-title'>Generate a keyed hash value using the HMAC method and the contents of a given file</span></p> </div> <a name='function.hash-hmac-file.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>hash_hmac_file</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algo</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$filename</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> [, <span class='methodparam'><span class='type'>bool</span> <tt class='parameter'>$raw_output</tt><span class='initializer'> = false</span></span> ] )</div> </div> <a name='function.hash-hmac-file.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algo</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Name of selected hashing algorithm (i.e. &amp;quot;md5&amp;quot;, &amp;quot;sha256&amp;quot;, &amp;quot;haval160,4&amp;quot;, etc..) </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>filename</tt></i> </span> </dt><dd class='listitem'> <p class='para'> URL describing location of file to be hashed; Supports fopen wrappers. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Shared secret key used for generating the HMAC variant of the message digest. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>raw_output</tt></i> </span> </dt><dd class='listitem'> <p class='para'> When set to <b><tt class='constant'>TRUE</tt></b>, outputs raw binary data. Default value (<b><tt class='constant'>FALSE</tt></b>) outputs lowercase hexits. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-hmac-file.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns a string containing the calculated message digest as lowercase hexits unless <i><tt class='parameter'>raw_output</tt></i> is set to true in which case the raw binary representation of the message digest is returned. </p> </div> <a name='function.hash-hmac-file.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>hash_hmac_file()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #FF8000'>/*&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;file&amp;nbsp;to&amp;nbsp;calculate&amp;nbsp;hash&amp;nbsp;of&amp;nbsp;*/<br /></span><span style='color: #0000BB'>file_put_contents</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'example.txt'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'The&amp;nbsp;quick&amp;nbsp;brown&amp;nbsp;fox&amp;nbsp;jumped&amp;nbsp;over&amp;nbsp;the&amp;nbsp;lazy&amp;nbsp;dog.'</span><span style='color: #007700'>);<br /><br />echo&amp;nbsp;</span><span style='color: #0000BB'>hash_hmac_file</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'md5'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'example.txt'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'secret'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 7eb2b5c37443418fc77c136dd20e859c </pre></div> </div> </div><p> </p> </div> <a name='function.hash-hmac-file.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.hash-hmac.php' class='function' rel='rdfs-seeAlso'>hash_hmac()</a> - Generate a keyed hash value using the HMAC method</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-file.php' class='function' rel='rdfs-seeAlso'>hash_file()</a> - Generate a hash value using the contents of a given file</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="hash_hmac" value="<div id='function.hash-hmac' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.hash-hmac.php'>hash_hmac</a></h1> <p class='verinfo'>(PHP 5 &amp;gt;= 5.1.2, PECL hash &amp;gt;= 1.1)</p><p class='refpurpose'><span class='refname'>hash_hmac</span> &amp;mdash; <span class='dc-title'>Generate a keyed hash value using the HMAC method</span></p> </div> <a name='function.hash-hmac.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>hash_hmac</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algo</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> [, <span class='methodparam'><span class='type'>bool</span> <tt class='parameter'>$raw_output</tt><span class='initializer'> = false</span></span> ] )</div> </div> <a name='function.hash-hmac.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algo</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Name of selected hashing algorithm (i.e. &amp;quot;md5&amp;quot;, &amp;quot;sha256&amp;quot;, &amp;quot;haval160,4&amp;quot;, etc..) </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Message to be hashed. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Shared secret key used for generating the HMAC variant of the message digest. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>raw_output</tt></i> </span> </dt><dd class='listitem'> <p class='para'> When set to <b><tt class='constant'>TRUE</tt></b>, outputs raw binary data. Default value (<b><tt class='constant'>FALSE</tt></b>) outputs lowercase hexits. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-hmac.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns a string containing the calculated message digest as lowercase hexits unless <i><tt class='parameter'>raw_output</tt></i> is set to true in which case the raw binary representation of the message digest is returned. </p> </div> <a name='function.hash-hmac.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>hash_hmac()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #0000BB'>hash_hmac</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'ripemd160'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'The&amp;nbsp;quick&amp;nbsp;brown&amp;nbsp;fox&amp;nbsp;jumped&amp;nbsp;over&amp;nbsp;the&amp;nbsp;lazy&amp;nbsp;dog.'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'secret'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> b8e7ae12510bdfb1812e463a7f086122cf37e4f7 </pre></div> </div> </div><p> </p> </div> <a name='function.hash-hmac.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.hash.php' class='function' rel='rdfs-seeAlso'>hash()</a> - Generate a hash value (message digest)</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialize an incremental hashing context</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-hmac-file.php' class='function' rel='rdfs-seeAlso'>hash_hmac_file()</a> - Generate a keyed hash value using the HMAC method and the contents of a given file</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="hash_final" value="<div id='function.hash-final' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.hash-final.php'>hash_final</a></h1> <p class='verinfo'>(PHP 5 &amp;gt;= 5.1.2, PECL hash &amp;gt;= 1.1)</p><p class='refpurpose'><span class='refname'>hash_final</span> &amp;mdash; <span class='dc-title'>Finalize an incremental hash and return resulting digest</span></p> </div> <a name='function.hash-final.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>hash_final</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$context</tt></span> [, <span class='methodparam'><span class='type'>bool</span> <tt class='parameter'>$raw_output</tt><span class='initializer'> = false</span></span> ] )</div> </div> <a name='function.hash-final.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>context</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Hashing context returned by <a href='http://www.php.net/manual/de/function.hash-init.php' class='function'>hash_init()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>raw_output</tt></i> </span> </dt><dd class='listitem'> <p class='para'> When set to <b><tt class='constant'>TRUE</tt></b>, outputs raw binary data. Default value (<b><tt class='constant'>FALSE</tt></b>) outputs lowercase hexits. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-final.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns a string containing the calculated message digest as lowercase hexits unless <i><tt class='parameter'>raw_output</tt></i> is set to true in which case the raw binary representation of the message digest is returned. </p> </div> <a name='function.hash-final.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>hash_final()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$ctx&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>hash_init</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'sha1'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>hash_update</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$ctx</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'The&amp;nbsp;quick&amp;nbsp;brown&amp;nbsp;fox&amp;nbsp;jumped&amp;nbsp;over&amp;nbsp;the&amp;nbsp;lazy&amp;nbsp;dog.'</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>hash_final</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$ctx</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> c0854fb9fb03c41cce3802cb0d220529e6eef94e </pre></div> </div> </div><p> </p> </div> <a name='function.hash-final.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialize an incremental hashing context</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-update.php' class='function' rel='rdfs-seeAlso'>hash_update()</a> - Pump data into an active hashing context</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-update-stream.php' class='function' rel='rdfs-seeAlso'>hash_update_stream()</a> - Pump data into an active hashing context from an open stream</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-update-file.php' class='function' rel='rdfs-seeAlso'>hash_update_file()</a> - Pump data into an active hashing context from a file</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="hash_file" value="<div id='function.hash-file' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.hash-file.php'>hash_file</a></h1> <p class='verinfo'>(PHP 5 &amp;gt;= 5.1.2, PECL hash &amp;gt;= 1.1)</p><p class='refpurpose'><span class='refname'>hash_file</span> &amp;mdash; <span class='dc-title'>Generate a hash value using the contents of a given file</span></p> </div> <a name='function.hash-file.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>hash_file</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algo</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$filename</tt></span> [, <span class='methodparam'><span class='type'>bool</span> <tt class='parameter'>$raw_output</tt><span class='initializer'> = false</span></span> ] )</div> </div> <a name='function.hash-file.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algo</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Name of selected hashing algorithm (i.e. &amp;quot;md5&amp;quot;, &amp;quot;sha256&amp;quot;, &amp;quot;haval160,4&amp;quot;, etc..) </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>filename</tt></i> </span> </dt><dd class='listitem'> <p class='para'> URL describing location of file to be hashed; Supports fopen wrappers. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>raw_output</tt></i> </span> </dt><dd class='listitem'> <p class='para'> When set to <b><tt class='constant'>TRUE</tt></b>, outputs raw binary data. Default value (<b><tt class='constant'>FALSE</tt></b>) outputs lowercase hexits. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-file.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns a string containing the calculated message digest as lowercase hexits unless <i><tt class='parameter'>raw_output</tt></i> is set to true in which case the raw binary representation of the message digest is returned. </p> </div> <a name='function.hash-file.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 Using <b>hash_file()</b></b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #FF8000'>/*&amp;nbsp;Create&amp;nbsp;a&amp;nbsp;file&amp;nbsp;to&amp;nbsp;calculate&amp;nbsp;hash&amp;nbsp;of&amp;nbsp;*/<br /></span><span style='color: #0000BB'>file_put_contents</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'example.txt'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'The&amp;nbsp;quick&amp;nbsp;brown&amp;nbsp;fox&amp;nbsp;jumped&amp;nbsp;over&amp;nbsp;the&amp;nbsp;lazy&amp;nbsp;dog.'</span><span style='color: #007700'>);<br /><br />echo&amp;nbsp;</span><span style='color: #0000BB'>hash_file</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'md5'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'example.txt'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 5c6ffbdd40d9556b73a21e63c3e0e904 </pre></div> </div> </div><p> </p> </div> <a name='function.hash-file.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.hash.php' class='function' rel='rdfs-seeAlso'>hash()</a> - Generate a hash value (message digest)</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-hmac-file.php' class='function' rel='rdfs-seeAlso'>hash_hmac_file()</a> - Generate a keyed hash value using the HMAC method and the contents of a given file</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-update-file.php' class='function' rel='rdfs-seeAlso'>hash_update_file()</a> - Pump data into an active hashing context from a file</li> <li class='member'><a href='http://www.php.net/manual/de/function.md5-file.php' class='function' rel='rdfs-seeAlso'>md5_file()</a> - Berechnet den MD5-Code einer Datei</li> <li class='member'><a href='http://www.php.net/manual/de/function.sha1-file.php' class='function' rel='rdfs-seeAlso'>sha1_file()</a> - Berechnet den SHA1-Hash einer Datei</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="hash_algos" value="<div id='function.hash-algos' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.hash-algos.php'>hash_algos</a></h1> <p class='verinfo'>(PHP 5 &amp;gt;= 5.1.2, PECL hash &amp;gt;= 1.1)</p><p class='refpurpose'><span class='refname'>hash_algos</span> &amp;mdash; <span class='dc-title'>Return a list of registered hashing algorithms</span></p> </div> <a name='function.hash-algos.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>array</span> <span class='methodname'><b>hash_algos</b></span> ( <span class='methodparam'>void</span> )</div> </div> <a name='function.hash-algos.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns a numerically indexed array containing the list of supported hashing algorithms. </p> </div> <a name='function.hash-algos.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>hash_algos()</b> example</b></p> <div class='example-contents para'><p> As of PHP 5.1.2, <b>hash_algos()</b> will return the following list of algorithm names. </p></div> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />print_r</span><span style='color: #007700'>(</span><span style='color: #0000BB'>hash_algos</span><span style='color: #007700'>());<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> Array ( [0] =&amp;gt; md4 [1] =&amp;gt; md5 [2] =&amp;gt; sha1 [3] =&amp;gt; sha256 [4] =&amp;gt; sha384 [5] =&amp;gt; sha512 [6] =&amp;gt; ripemd128 [7] =&amp;gt; ripemd160 [8] =&amp;gt; whirlpool [9] =&amp;gt; tiger128,3 [10] =&amp;gt; tiger160,3 [11] =&amp;gt; tiger192,3 [12] =&amp;gt; tiger128,4 [13] =&amp;gt; tiger160,4 [14] =&amp;gt; tiger192,4 [15] =&amp;gt; snefru [16] =&amp;gt; gost [17] =&amp;gt; adler32 [18] =&amp;gt; crc32 [19] =&amp;gt; crc32b [20] =&amp;gt; haval128,3 [21] =&amp;gt; haval160,3 [22] =&amp;gt; haval192,3 [23] =&amp;gt; haval224,3 [24] =&amp;gt; haval256,3 [25] =&amp;gt; haval128,4 [26] =&amp;gt; haval160,4 [27] =&amp;gt; haval192,4 [28] =&amp;gt; haval224,4 [29] =&amp;gt; haval256,4 [30] =&amp;gt; haval128,5 [31] =&amp;gt; haval160,5 [32] =&amp;gt; haval192,5 [33] =&amp;gt; haval224,5 [34] =&amp;gt; haval256,5 ) </pre></div> </div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="hash" value="<div id='function.hash' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.hash.php'>hash</a></h1> <p class='verinfo'>(PHP 5 &amp;gt;= 5.1.2, PECL hash &amp;gt;= 1.1)</p><p class='refpurpose'><span class='refname'>hash</span> &amp;mdash; <span class='dc-title'>Generate a hash value (message digest)</span></p> </div> <a name='function.hash.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>hash</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$algo</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> [, <span class='methodparam'><span class='type'>bool</span> <tt class='parameter'>$raw_output</tt><span class='initializer'> = false</span></span> ] )</div> </div> <a name='function.hash.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algo</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Name of selected hashing algorithm (i.e. &amp;quot;md5&amp;quot;, &amp;quot;sha256&amp;quot;, &amp;quot;haval160,4&amp;quot;, etc..) </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Message to be hashed. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>raw_output</tt></i> </span> </dt><dd class='listitem'> <p class='para'> When set to <b><tt class='constant'>TRUE</tt></b>, outputs raw binary data. Default value (<b><tt class='constant'>FALSE</tt></b>) outputs lowercase hexits. </p> </dd> </dl> <p> </p> </div> <a name='function.hash.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns a string containing the calculated message digest as lowercase hexits unless <i><tt class='parameter'>raw_output</tt></i> is set to true in which case the raw binary representation of the message digest is returned. </p> </div> <a name='function.hash.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 A <b>hash()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #0000BB'>hash</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'ripemd160'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'The&amp;nbsp;quick&amp;nbsp;brown&amp;nbsp;fox&amp;nbsp;jumped&amp;nbsp;over&amp;nbsp;the&amp;nbsp;lazy&amp;nbsp;dog.'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> ec457d0a974c48d5685a7efa03d137dc8bbde7e3 </pre></div> </div> </div><p> </p> </div> <a name='function.hash.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.hash-file.php' class='function' rel='rdfs-seeAlso'>hash_file()</a> - Generate a hash value using the contents of a given file</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-hmac.php' class='function' rel='rdfs-seeAlso'>hash_hmac()</a> - Generate a keyed hash value using the HMAC method</li> <li class='member'><a href='http://www.php.net/manual/de/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialize an incremental hashing context</li> <li class='member'><a href='http://www.php.net/manual/de/function.md5.php' class='function' rel='rdfs-seeAlso'>md5()</a> - Errechnet den MD5-Hash eines Strings</li> <li class='member'><a href='http://www.php.net/manual/de/function.sha1.php' class='function' rel='rdfs-seeAlso'>sha1()</a> - Berechnet den SHA1-Hash eines Strings</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzwrite" value="<div id='function.gzwrite' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzwrite.php'>gzwrite</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzwrite</span> &amp;mdash; <span class='dc-title'>Ausgabe in gz-komprimierte Dateien</span></p> </div> <a name='function.gzwrite.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>gzwrite</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$string</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$length</tt></span> ] )</div> <p class='para rdfs-comment'> <b>gzwrite()</b> schreibt den Inhalt von <i><tt class='parameter'>string</tt></i> in die angegebene gz-Datei aus. </p> </div> <a name='function.gzwrite.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Eine gz-Datei Resource. Diese muss g&amp;uuml;ltig sein und auf eine Datei zeigen die erfolgreich mit <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a> ge&amp;ouml;ffnet wurde. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>string</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Der auszugebende String. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die Anzahl unkomprimierter Bytes die ausgegeben werden soll. Wenn angegeben wird nach <i><tt class='parameter'>length</tt></i> geschriebenen Bytes aus <i><tt class='parameter'>string</tt></i> abgebrochen wenn bis dahin das Ende des Strings nicht erreicht ist. </p> <blockquote><p><b class='note'>Hinweis</b>: Beachten Sie das der <a href='http://www.php.net/manual/de/info.configuration.php#ini.magic-quotes-runtime' class='link'>magic_quotes_runtime</a> Konfigurationsparameter ignoriert wird und keine Slashes aus <i><tt class='parameter'>string</tt></i> entfernt werden wenn der optionale Parameter <i><tt class='parameter'>length</tt></i> &amp;uuml;bergeben wird. <br /> </p></blockquote> </dd> </dl> <p> </p> </div> <a name='function.gzwrite.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt die Anzahl der (unkomprimierten) Bytes zur&amp;uuml;ck die auf den gegebenen gz-Stream ausgegeben wurden. </p> </div> <a name='function.gzwrite.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzwrite()</b> Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$string&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'Zu&amp;nbsp;komprimierende&amp;nbsp;Daten'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>$gz&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'somefile.gz'</span><span style='color: #007700'>,</span><span style='color: #DD0000'>'w9'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>gzwrite</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$string</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>gzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzwrite.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzread.php' class='function' rel='rdfs-seeAlso'>gzread()</a> - Liest aus einer gz-Datei</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - &amp;Ouml;ffnet gz-Dateien</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzuncompress" value="<div id='function.gzuncompress' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzuncompress.php'>gzuncompress</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.1, PHP 5)</p><p class='refpurpose'><span class='refname'>gzuncompress</span> &amp;mdash; <span class='dc-title'>Dekomprimiert einen komprimierten String</span></p> </div> <a name='function.gzuncompress.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>gzuncompress</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$length</tt><span class='initializer'> = 0</span></span> ] )</div> <p class='para rdfs-comment'> Diese Funktion dekomprimiert einen komprimierten String. </p> </div> <a name='function.gzuncompress.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Mit <a href='http://www.php.net/manual/de/function.gzcompress.php' class='function'>gzcompress()</a> komprimierte Daten </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die maximale L&amp;auml;nge der dekodierten Daten. </p> </dd> </dl> <p> </p> </div> <a name='function.gzuncompress.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Die urspr&amp;uuml;nglichen nicht komprimierten Daten oder <b><tt class='constant'>FALSE</tt></b> bei Fehlern. </p> <p class='para'> Die Funktion gibt einen Fehler zur&amp;uuml;ck wenn die unkomprimierten Daten mehr als 32768 mal so lang sind wie die komprimierte Eingabe oder l&amp;auml;nger als mit dem optionalen Parameter <i><tt class='parameter'>length</tt></i> angegeben. </p> </div> <a name='function.gzuncompress.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzuncompress()</b> Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$compressed&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzcompress</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'Compress&amp;nbsp;me'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>9</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>$uncompressed&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzuncompress</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$compressed</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>$uncompressed</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzuncompress.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzcompress.php' class='function' rel='rdfs-seeAlso'>gzcompress()</a> - Komprimiert einen String</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzinflate.php' class='function' rel='rdfs-seeAlso'>gzinflate()</a> - Inflate a deflated string</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzdeflate.php' class='function' rel='rdfs-seeAlso'>gzdeflate()</a> - Deflate a string</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzencode.php' class='function' rel='rdfs-seeAlso'>gzencode()</a> - Create a gzip compressed string</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gztell" value="<div id='function.gztell' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gztell.php'>gztell</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gztell</span> &amp;mdash; <span class='dc-title'>Ermittelt die aktuelle Position in einer gz-Datei</span></p> </div> <a name='function.gztell.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>gztell</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> )</div> <p class='para rdfs-comment'> Gibt die aktuelle Schreib-/Leseposition innerhalb der gegebenen gz-Datei zur&amp;uuml;ck. Diese entspricht dem Offset in die nicht komprimierten Dateidaten. </p> </div> <a name='function.gztell.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die gz-Datei Resource. Dies muss auf eine g&amp;uuml;ltige, erfolgreich mit <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a> ge&amp;ouml;ffnete Datei zeigen. </p> </dd> </dl> <p> </p> </div> <a name='function.gztell.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Die aktuelle Dateiposition oder <b><tt class='constant'>FALSE</tt></b> bei Fehlern. </p> </div> <a name='function.gztell.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - &amp;Ouml;ffnet gz-Dateien</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzseek.php' class='function' rel='rdfs-seeAlso'>gzseek()</a> - Positioniert innerhalb einer gz-Datei</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzrewind.php' class='function' rel='rdfs-seeAlso'>gzrewind()</a> - Setzt die Dateiposition auf den Anfang zur&amp;uuml;ck</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzseek" value="<div id='function.gzseek' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzseek.php'>gzseek</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzseek</span> &amp;mdash; <span class='dc-title'>Positioniert innerhalb einer gz-Datei</span></p> </div> <a name='function.gzseek.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>gzseek</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$offset</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$whence</tt><span class='initializer'> = SEEK_SET</span></span> ] )</div> <p class='para rdfs-comment'> Setzt die Schreib-/Leseposition f&amp;uuml;r die angegebene Datei. Dies entspricht dem C-API Aufruf <i>gzseek(zp, offset, SEEK_SET)</i>. </p> <p class='para'> Wenn die Datei f&amp;uuml;r Lesezugriffe ge&amp;ouml;ffnet ist wird diese Funktion emuliert und kann sehr langsam sein. Wenn die Datei zum Schreiben ge&amp;ouml;ffnet ist kann nur vorw&amp;auml;rts positioniert werden, die Funktion komprimiert dann eine Sequenz von Nullbytes um die gew&amp;uuml;nschte Position zu erreichen. </p> </div> <a name='function.gzseek.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die gz-Datei Resource. Dies muss auf eine g&amp;uuml;ltige, erfolgreich mit <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a> ge&amp;ouml;ffnete Datei zeigen. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>offset</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die gew&amp;uuml;nschte Position. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>whence</tt></i> </span> </dt><dd class='listitem'> <p class='para'> <i><tt class='parameter'>whence</tt></i> gibt an auf welche Anfangsposition sich <i><tt class='parameter'>offset</tt></i> bezieht. M&amp;ouml;gliche Werte sind: </p><ul class='simplelist'> <li class='member'><b><tt class='constant'>SEEK_SET</tt></b> - Setzt die Position auf <i><tt class='parameter'>offset</tt></i> Bytes vom Dataianfang.</li> <li class='member'><b><tt class='constant'>SEEK_CUR</tt></b> - Verschiebt die Position um <i><tt class='parameter'>offset</tt></i> Bytes ausgehend von der aktuellen Position.</li> </ul><p> </p> <p class='para'> Wird <i><tt class='parameter'>whence</tt></i> nicht angegeben so wird <b><tt class='constant'>SEEK_SET</tt></b> angenommen. </p> </dd> </dl> <p> </p> </div> <a name='function.gzseek.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt 0 bei Erfolg und -1 bei Fehlern zur&amp;uuml;ck. Beachten Sie das eine Suche &amp;uuml;ber das Dateiende hinaus nicht als Fehler gilt. </p> </div> <a name='function.gzseek.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzseek()</b> Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$gz&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'somefile.gz'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'r'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>gzseek</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>,</span><span style='color: #0000BB'>2</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>gzgetc</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>gzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzseek.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gztell.php' class='function' rel='rdfs-seeAlso'>gztell()</a> - Ermittelt die aktuelle Position in einer gz-Datei</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzrewind.php' class='function' rel='rdfs-seeAlso'>gzrewind()</a> - Setzt die Dateiposition auf den Anfang zur&amp;uuml;ck</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzrewind" value="<div id='function.gzrewind' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzrewind.php'>gzrewind</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzrewind</span> &amp;mdash; <span class='dc-title'>Setzt die Dateiposition auf den Anfang zur&amp;uuml;ck</span></p> </div> <a name='function.gzrewind.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>gzrewind</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> )</div> <p class='para rdfs-comment'> Setzt die Schreib-/Leseposition der gz-Datei Resource auf den Anfang des Streams zur&amp;uuml;ck. </p> </div> <a name='function.gzrewind.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die gz-Datei Resource. Dies muss auf eine g&amp;uuml;ltige, erfolgreich mit <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a> ge&amp;ouml;ffnete Datei zeigen. </p> </dd> </dl> <p> </p> </div> <a name='function.gzrewind.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt bei Erfolg <b><tt class='constant'>TRUE</tt></b> zur&amp;uuml;ck, im Fehlerfall <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.gzrewind.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzseek.php' class='function' rel='rdfs-seeAlso'>gzseek()</a> - Positioniert innerhalb einer gz-Datei</li> <li class='member'><a href='http://www.php.net/manual/de/function.gztell.php' class='function' rel='rdfs-seeAlso'>gztell()</a> - Ermittelt die aktuelle Position in einer gz-Datei</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzread" value="<div id='function.gzread' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzread.php'>gzread</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzread</span> &amp;mdash; <span class='dc-title'>Liest aus einer gz-Datei</span></p> </div> <a name='function.gzread.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>gzread</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$length</tt></span> )</div> <p class='para rdfs-comment'> <b>gzread()</b> liest bis zu <i><tt class='parameter'>length</tt></i> Bytes aus der gegebenen gz-Datei Resource. Wird beim Lesen das Dateiende erreicht k&amp;ouml;nnen auch weniger Bytes gelesen werden. </p> </div> <a name='function.gzread.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die gz-Datei Resource. Dies muss auf eine g&amp;uuml;ltige, erfolgreich mit <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a> ge&amp;ouml;ffnete Datei zeigen. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die Anzahl der zu lesenden Bytes. </p> </dd> </dl> <p> </p> </div> <a name='function.gzread.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Die gelesenen Daten. </p> </div> <a name='function.gzread.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzread()</b> Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #FF8000'>//&amp;nbsp;Liest&amp;nbsp;den&amp;nbsp;Inhalt&amp;nbsp;einer&amp;nbsp;gz-Datei&amp;nbsp;in&amp;nbsp;einen&amp;nbsp;String<br /></span><span style='color: #0000BB'>$filename&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'/usr/local/something.txt.gz'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>$zd&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzopen</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$filename</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'r'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>$contents&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzread</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$zd</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>10000</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>gzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$zd</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzread.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzwrite.php' class='function' rel='rdfs-seeAlso'>gzwrite()</a> - Ausgabe in gz-komprimierte Dateien</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - &amp;Ouml;ffnet gz-Dateien</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzgets.php' class='function' rel='rdfs-seeAlso'>gzgets()</a> - Get line from file pointer</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzgetss.php' class='function' rel='rdfs-seeAlso'>gzgetss()</a> - Get line from gz-file pointer and strip HTML tags</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzfile.php' class='function' rel='rdfs-seeAlso'>gzfile()</a> - Read entire gz-file into an array</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzpassthru.php' class='function' rel='rdfs-seeAlso'>gzpassthru()</a> - Output all remaining data on a gz-file pointer</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzputs" value="<div id='function.gzputs' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzputs.php'>gzputs</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzputs</span> &amp;mdash; <span class='dc-title'>Alias von <a href='http://www.php.net/manual/de/function.gzwrite.php' class='function'>gzwrite()</a></span></p> </div> <a name='function.gzputs.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <p class='simpara'> Diese Funktion ist ein Alias f&amp;uuml;r: <a href='http://www.php.net/manual/de/function.gzwrite.php' class='function'>gzwrite()</a>. </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzpassthru" value="<div id='function.gzpassthru' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzpassthru.php'>gzpassthru</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzpassthru</span> &amp;mdash; <span class='dc-title'> Output all remaining data on a gz-file pointer </span></p> </div> <a name='function.gzpassthru.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>gzpassthru</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> )</div> <p class='para rdfs-comment'> Reads to EOF on the given gz-file pointer from the current position and writes the (uncompressed) results to standard output. </p> <blockquote><p><b class='note'>Hinweis</b>: You may need to call <a href='http://www.php.net/manual/de/function.gzrewind.php' class='function'>gzrewind()</a> to reset the file pointer to the beginning of the file if you have already written data to it. <br /> </p></blockquote> <div class='tip'><b class='tip'>Tipp</b> <p class='para'> If you just want to dump the contents of a file to the output buffer, without first modifying it or seeking to a particular offset, you may want to use the <a href='http://www.php.net/manual/de/function.readgzfile.php' class='function'>readgzfile()</a> function, which saves you the <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a> call. </p> </div> </div> <a name='function.gzpassthru.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The gz-file pointer. It must be valid, and must point to a file successfully opened by <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.gzpassthru.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> The number of uncompressed characters read from <i><tt class='parameter'>gz</tt></i> and passed through to the input, or <b><tt class='constant'>FALSE</tt></b> on error. </p> </div> <a name='function.gzpassthru.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzpassthru()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$fp&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'file.gz'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'r'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>gzpassthru</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$fp</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>gzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$fp</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzopen" value="<div id='function.gzopen' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzopen.php'>gzopen</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzopen</span> &amp;mdash; <span class='dc-title'>&amp;Ouml;ffnet gz-Dateien</span></p> </div> <a name='function.gzopen.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>resource</span> <span class='methodname'><b>gzopen</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$filename</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$mode</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$use_include_path</tt><span class='initializer'> = 0</span></span> ] )</div> <p class='para rdfs-comment'> &amp;Ouml;ffnet eine gzip (.gz) Datei zum Lesen oder Schreiben. </p> <p class='para'> <b>gzopen()</b> kann auch Dateien lesen die nicht im gzip-Format vorliegen. In diesem Fall liest <a href='http://www.php.net/manual/de/function.gzread.php' class='function'>gzread()</a> dierekt aus der Datei ohne zu entpacken. </p> </div> <a name='function.gzopen.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>filename</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Der Dateiname. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Wie in <a href='http://www.php.net/manual/de/function.fopen.php' class='function'>fopen()</a> (<i>rb</i> oder <i>wb</i>), allerdings kann auch der Kompressionsgrad (<i>wb9</i>) oder die Strategie angegeben werden: <i>f</i> f&amp;uuml;r gefilterte Daten (<i>wb6f</i>) oder <i>h</i> f&amp;uuml;r Huffman-Kompression (<i>wb1h</i>). (Weitere Informationen &amp;uuml;ber den Strategieparameter finden Sie in der Beschreibung zu <i>deflateInit2</i> in <var class='filename'>zlib.h</var>.) </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>use_include_path</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Sie k&amp;ouml;nnen diesen optionalen Parameter auf <i>1</i> setzen um die Datei auch im <a href='http://www.php.net/manual/de/ini.core.php#ini.include-path' class='link'>include_path</a> suchen zu lassen. </p> </dd> </dl> <p> </p> </div> <a name='function.gzopen.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt einen Dateidescriptor auf die ge&amp;ouml;ffnete Datei zur&amp;uuml;ck. Alles was Sie von nun an hieraus lesen wird transparaent entpackt und alles was Sie schreiben wird komprimiert. </p> <p class='para'> Schl&amp;auml;gt das &amp;Ouml;ffnen fehl so gibt die Funktion <b><tt class='constant'>FALSE</tt></b> zur&amp;uuml;ck. </p> </div> <a name='function.gzopen.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzopen()</b> Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$fp&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'/tmp/file.gz'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'r'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzopen.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzclose.php' class='function' rel='rdfs-seeAlso'>gzclose()</a> - Schlie&amp;szlig;t eine ge&amp;ouml;ffnete gz-Datei</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzinflate" value="<div id='function.gzinflate' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzinflate.php'>gzinflate</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzinflate</span> &amp;mdash; <span class='dc-title'>Inflate a deflated string</span></p> </div> <a name='function.gzinflate.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>gzinflate</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$length</tt></span> ] )</div> <p class='para rdfs-comment'> This function inflate a deflated string. </p> </div> <a name='function.gzinflate.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The data compressed by <a href='http://www.php.net/manual/de/function.gzdeflate.php' class='function'>gzdeflate()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The maximum length of data to decode. </p> </dd> </dl> <p> </p> </div> <a name='function.gzinflate.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> The original uncompressed data or <b><tt class='constant'>FALSE</tt></b> on error. </p> <p class='para'> The function will return an error if the uncompressed data is more than 32768 times the length of the compressed input <i><tt class='parameter'>data</tt></i> or more than the optional parameter <i><tt class='parameter'>length</tt></i> . </p> </div> <a name='function.gzinflate.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzinflate()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$compressed&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzdeflate</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'Compress&amp;nbsp;me'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>9</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>$uncompressed&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzinflate</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$compressed</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>$uncompressed</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzinflate.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzdeflate.php' class='function' rel='rdfs-seeAlso'>gzdeflate()</a> - Deflate a string</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzcompress.php' class='function' rel='rdfs-seeAlso'>gzcompress()</a> - Komprimiert einen String</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzuncompress.php' class='function' rel='rdfs-seeAlso'>gzuncompress()</a> - Dekomprimiert einen komprimierten String</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzencode.php' class='function' rel='rdfs-seeAlso'>gzencode()</a> - Create a gzip compressed string</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzgetss" value="<div id='function.gzgetss' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzgetss.php'>gzgetss</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzgetss</span> &amp;mdash; <span class='dc-title'> Get line from gz-file pointer and strip HTML tags </span></p> </div> <a name='function.gzgetss.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>gzgetss</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$length</tt></span> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$allowable_tags</tt></span> ] )</div> <p class='para rdfs-comment'> Identical to <a href='http://www.php.net/manual/de/function.gzgets.php' class='function'>gzgets()</a>, except that <b>gzgetss()</b> attempts to strip any HTML and PHP tags from the text it reads. </p> </div> <a name='function.gzgetss.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The gz-file pointer. It must be valid, and must point to a file successfully opened by <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The length of data to get. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>allowable_tags</tt></i> </span> </dt><dd class='listitem'> <p class='para'> You can use this optional parameter to specify tags which should not be stripped. </p> </dd> </dl> <p> </p> </div> <a name='function.gzgetss.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> The uncompressed and striped string, or <b><tt class='constant'>FALSE</tt></b> on error. </p> </div> <a name='function.gzgetss.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>Changelog</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>Version</th> <th>Beschreibung</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>3.0.13 and 4.0.0</td> <td align='left'> <i><tt class='parameter'>allowable_tags</tt></i> was added. </td> </tr> </tbody> </table> <p> </p> </div> <a name='function.gzgetss.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzgetss()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$handle&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'somefile.gz'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'r'</span><span style='color: #007700'>);<br />while&amp;nbsp;(!</span><span style='color: #0000BB'>gzeof</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$handle</span><span style='color: #007700'>))&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$buffer&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzgetss</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$handle</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>4096</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #0000BB'>$buffer</span><span style='color: #007700'>;<br />}<br /></span><span style='color: #0000BB'>gzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$handle</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzgetss.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - &amp;Ouml;ffnet gz-Dateien</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzgets.php' class='function' rel='rdfs-seeAlso'>gzgets()</a> - Get line from file pointer</li> <li class='member'><a href='http://www.php.net/manual/de/function.strip-tags.php' class='function' rel='rdfs-seeAlso'>strip_tags()</a> - Entfernt HTML- und PHP-Tags aus einem String</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzgets" value="<div id='function.gzgets' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzgets.php'>gzgets</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzgets</span> &amp;mdash; <span class='dc-title'>Get line from file pointer</span></p> </div> <a name='function.gzgets.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>gzgets</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> , <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$length</tt></span> )</div> <p class='para rdfs-comment'> Gets a (uncompressed) string of up to length - 1 bytes read from the given file pointer. Reading ends when length - 1 bytes have been read, on a newline, or on EOF (whichever comes first). </p> </div> <a name='function.gzgets.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The gz-file pointer. It must be valid, and must point to a file successfully opened by <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The length of data to get. </p> </dd> </dl> <p> </p> </div> <a name='function.gzgets.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> The uncompressed string, or <b><tt class='constant'>FALSE</tt></b> on error. </p> </div> <a name='function.gzgets.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzgets()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$handle&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'somefile.gz'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'r'</span><span style='color: #007700'>);<br />while&amp;nbsp;(!</span><span style='color: #0000BB'>gzeof</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$handle</span><span style='color: #007700'>))&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$buffer&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzgets</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$handle</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>4096</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #0000BB'>$buffer</span><span style='color: #007700'>;<br />}<br /></span><span style='color: #0000BB'>gzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$handle</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzgets.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - &amp;Ouml;ffnet gz-Dateien</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzgetc.php' class='function' rel='rdfs-seeAlso'>gzgetc()</a> - Get character from gz-file pointer</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzwrite.php' class='function' rel='rdfs-seeAlso'>gzwrite()</a> - Ausgabe in gz-komprimierte Dateien</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzgetc" value="<div id='function.gzgetc' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzgetc.php'>gzgetc</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzgetc</span> &amp;mdash; <span class='dc-title'>Get character from gz-file pointer</span></p> </div> <a name='function.gzgetc.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>gzgetc</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> )</div> <p class='para rdfs-comment'> Returns a string containing a single (uncompressed) character read from the given gz-file pointer. </p> </div> <a name='function.gzgetc.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The gz-file pointer. It must be valid, and must point to a file successfully opened by <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.gzgetc.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> The uncompressed character or <b><tt class='constant'>FALSE</tt></b> on EOF (unlike <a href='http://www.php.net/manual/de/function.gzeof.php' class='function'>gzeof()</a>). </p> </div> <a name='function.gzgetc.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzgetc()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$gz&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'somefile.gz'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'r'</span><span style='color: #007700'>);<br />while&amp;nbsp;(!</span><span style='color: #0000BB'>gzeof</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>))&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #0000BB'>gzgetc</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>);<br />}<br /></span><span style='color: #0000BB'>gzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzgetc.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - &amp;Ouml;ffnet gz-Dateien</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzgets.php' class='function' rel='rdfs-seeAlso'>gzgets()</a> - Get line from file pointer</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzfile" value="<div id='function.gzfile' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzfile.php'>gzfile</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzfile</span> &amp;mdash; <span class='dc-title'>Read entire gz-file into an array</span></p> </div> <a name='function.gzfile.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>array</span> <span class='methodname'><b>gzfile</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$filename</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$use_include_path</tt><span class='initializer'> = 0</span></span> ] )</div> <p class='para rdfs-comment'> Diese Funktion entspricht weitgehend <a href='http://www.php.net/manual/de/function.readgzfile.php' class='function'>readgzfile()</a>, gibt die Datei aber in einem Array zur&amp;uuml;ck. </p> </div> <a name='function.gzfile.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>filename</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Der Dateiname. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>use_include_path</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Sie k&amp;ouml;nnen diesen optionalen Parameter auf <i>1</i> setzen wenn Sie die Datei auch im <a href='http://www.php.net/manual/de/ini.core.php#ini.include-path' class='link'>include_path</a> suchen lassen wollen. </p> </dd> </dl> <p> </p> </div> <a name='function.gzfile.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Ein Array das die Zeilen der Datei als Elemente enth&amp;auml;lt. </p> </div> <a name='function.gzfile.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzfile()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$lines&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzfile</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'somefile.gz'</span><span style='color: #007700'>);<br />foreach&amp;nbsp;(</span><span style='color: #0000BB'>$lines&amp;nbsp;</span><span style='color: #007700'>as&amp;nbsp;</span><span style='color: #0000BB'>$line</span><span style='color: #007700'>)&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #0000BB'>$line</span><span style='color: #007700'>;<br />}<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzfile.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.readgzfile.php' class='function' rel='rdfs-seeAlso'>readgzfile()</a> - Gibt eine gz-komprimierte Datei aus</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - &amp;Ouml;ffnet gz-Dateien</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzeof" value="<div id='function.gzeof' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzeof.php'>gzeof</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzeof</span> &amp;mdash; <span class='dc-title'>Test for end-of-file on a gz-file pointer</span></p> </div> <a name='function.gzeof.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>gzeof</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> )</div> <p class='para rdfs-comment'> Tests the given GZ file pointer for EOF (end-of-file). </p> </div> <a name='function.gzeof.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The gz-file pointer. It must be valid, and must point to a file successfully opened by <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.gzeof.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Returns <b><tt class='constant'>TRUE</tt></b> if the gz-file pointer is at EOF or an error occurs; otherwise returns <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.gzeof.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzeof()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$gz&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'somefile.gz'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'r'</span><span style='color: #007700'>);<br />while&amp;nbsp;(!</span><span style='color: #0000BB'>gzeof</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>))&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #0000BB'>gzgetc</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>);<br />}<br /></span><span style='color: #0000BB'>gzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzencode" value="<div id='function.gzencode' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzencode.php'>gzencode</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzencode</span> &amp;mdash; <span class='dc-title'>Create a gzip compressed string</span></p> </div> <a name='function.gzencode.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>gzencode</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$level</tt><span class='initializer'> = -1</span></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$encoding_mode</tt><span class='initializer'> = FORCE_GZIP</span></span> ]] )</div> <p class='para rdfs-comment'> This function returns a compressed version of the input <i><tt class='parameter'>data</tt></i> compatible with the output of the <strong class='command'>gzip</strong> program. </p> <p class='para'> For more information on the GZIP file format, see the document: <a href='http://www.faqs.org/rfcs/rfc1952' class='link external'>&amp;raquo; GZIP file format specification version 4.3</a> (RFC 1952). </p> </div> <a name='function.gzencode.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The data to encode. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>level</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The level of compression. Can be given as 0 for no compression up to 9 for maximum compression. If not given, the default compression level will be the default compression level of the zlib library. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>encoding_mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The encoding mode. Can be <b><tt class='constant'>FORCE_GZIP</tt></b> (the default) or <b><tt class='constant'>FORCE_DEFLATE</tt></b>. </p> <p class='para'> If you use <b><tt class='constant'>FORCE_DEFLATE</tt></b>, you get a standard zlib deflated string (inclusive zlib headers) after the gzip file header but without the trailing crc32 checksum. </p> </dd> </dl> <p> </p> </div> <a name='function.gzencode.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> The encoded string, or <b><tt class='constant'>FALSE</tt></b> if an error occurred. </p> </div> <a name='function.gzencode.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>Changelog</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>Version</th> <th>Beschreibung</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.2.0</td> <td align='left'> The <i><tt class='parameter'>encoding_mode</tt></i> parameter was added </td> </tr> </tbody> </table> <p> </p> </div> <a name='function.gzencode.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> The resulting data contains the appropriate headers and data structure to make a standard .gz file, e.g.: </p><div class='example'> <p><b>Beispiel #1 Creating a gzip file</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$data&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>implode</span><span style='color: #007700'>(</span><span style='color: #DD0000'>''</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>file</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'bigfile.txt'</span><span style='color: #007700'>));<br /></span><span style='color: #0000BB'>$gzdata&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzencode</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$data</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>9</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>$fp&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>fopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'bigfile.txt.gz'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'w'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>fwrite</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$fp</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$gzdata</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>fclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$fp</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzencode.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzdecode.php' class='function' rel='rdfs-seeAlso'>gzdecode()</a> - Decodes a gzip compressed string</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzdeflate.php' class='function' rel='rdfs-seeAlso'>gzdeflate()</a> - Deflate a string</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzinflate.php' class='function' rel='rdfs-seeAlso'>gzinflate()</a> - Inflate a deflated string</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzuncompress.php' class='function' rel='rdfs-seeAlso'>gzuncompress()</a> - Dekomprimiert einen komprimierten String</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzcompress.php' class='function' rel='rdfs-seeAlso'>gzcompress()</a> - Komprimiert einen String</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzdeflate" value="<div id='function.gzdeflate' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzdeflate.php'>gzdeflate</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzdeflate</span> &amp;mdash; <span class='dc-title'>Deflate a string</span></p> </div> <a name='function.gzdeflate.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>gzdeflate</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$level</tt></span> ] )</div> <p class='para rdfs-comment'> This function compress the given string using the <i>DEFLATE</i> data format. </p> <p class='para'> For details on the DEFLATE compression algorithm see the document &amp;quot;<a href='http://www.faqs.org/rfcs/rfc1951' class='link external'>&amp;raquo; DEFLATE Compressed Data Format Specification version 1.3</a>&amp;quot; (RFC 1951). </p> </div> <a name='function.gzdeflate.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The data to deflate. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>level</tt></i> </span> </dt><dd class='listitem'> <p class='para'> The level of compression. Can be given as 0 for no compression up to 9 for maximum compression. If not given, the default compression level will be the default compression level of the zlib library. </p> </dd> </dl> <p> </p> </div> <a name='function.gzdeflate.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> The deflated string or <b><tt class='constant'>FALSE</tt></b> if an error occurred. </p> </div> <a name='function.gzdeflate.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzdeflate()</b> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$compressed&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzdeflate</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'Compress&amp;nbsp;me'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>9</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>$compressed</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzdeflate.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzinflate.php' class='function' rel='rdfs-seeAlso'>gzinflate()</a> - Inflate a deflated string</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzcompress.php' class='function' rel='rdfs-seeAlso'>gzcompress()</a> - Komprimiert einen String</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzuncompress.php' class='function' rel='rdfs-seeAlso'>gzuncompress()</a> - Dekomprimiert einen komprimierten String</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzencode.php' class='function' rel='rdfs-seeAlso'>gzencode()</a> - Create a gzip compressed string</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzcompress" value="<div id='function.gzcompress' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzcompress.php'>gzcompress</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.1, PHP 5)</p><p class='refpurpose'><span class='refname'>gzcompress</span> &amp;mdash; <span class='dc-title'>Komprimiert einen String</span></p> </div> <a name='function.gzcompress.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>gzcompress</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$level</tt><span class='initializer'> = -1</span></span> ] )</div> <p class='para rdfs-comment'> This function compress the given string using the <i>ZLIB</i> data format. </p> <p class='para'> Details zum ZLIB-Kompressionsalgorithmus finden Sie im Dokument &amp;quot;<a href='http://www.faqs.org/rfcs/rfc1950' class='link external'>&amp;raquo; ZLIB Compressed Data Format Specification version 3.3</a>&amp;quot; (RFC 1950). </p> <blockquote><p><b class='note'>Hinweis</b>: Dies entspricht <em class='emphasis'>nicht</em> der gzip-Kompression welche zus&amp;auml;tzliche Kopfdaten enth&amp;auml;lt. F&amp;uuml;r gzip-Kompression nutzen Sie bitte <a href='http://www.php.net/manual/de/function.gzencode.php' class='function'>gzencode()</a>. <br /> </p></blockquote> </div> <a name='function.gzcompress.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die zu komprimierenden Daten. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>level</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Der Kompressionsgrad. Dieser reicht von 0 f&amp;uuml;r keine Kompression bis 9 f&amp;uuml;r maximale Kompression. </p> </dd> </dl> <p> </p> </div> <a name='function.gzcompress.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Der komprimierte String oder <b><tt class='constant'>FALSE</tt></b> falls ein Fehler aufgetreten ist. </p> </div> <a name='function.gzcompress.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzcompress()</b> Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$compressed&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzcompress</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'Komprimiere&amp;nbsp;nicht'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>9</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>$compressed</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzcompress.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzdeflate.php' class='function' rel='rdfs-seeAlso'>gzdeflate()</a> - Deflate a string</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzinflate.php' class='function' rel='rdfs-seeAlso'>gzinflate()</a> - Inflate a deflated string</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzuncompress.php' class='function' rel='rdfs-seeAlso'>gzuncompress()</a> - Dekomprimiert einen komprimierten String</li> <li class='member'><a href='http://www.php.net/manual/de/function.gzencode.php' class='function' rel='rdfs-seeAlso'>gzencode()</a> - Create a gzip compressed string</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="gzclose" value="<div id='function.gzclose' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.gzclose.php'>gzclose</a></h1> <p class='verinfo'>(PHP 4, PHP 5)</p><p class='refpurpose'><span class='refname'>gzclose</span> &amp;mdash; <span class='dc-title'>Schlie&amp;szlig;t eine ge&amp;ouml;ffnete gz-Datei</span></p> </div> <a name='function.gzclose.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><b>gzclose</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$zp</tt></span> )</div> <p class='para rdfs-comment'> Schlie&amp;szlig;t die angegebe gz-Datei Resource. </p> </div> <a name='function.gzclose.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zp</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die gz-Datei Resource. Dies muss auf eine g&amp;uuml;ltige, erfolgreich mit <a href='http://www.php.net/manual/de/function.gzopen.php' class='function'>gzopen()</a> ge&amp;ouml;ffnete Datei zeigen. </p> </dd> </dl> <p> </p> </div> <a name='function.gzclose.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt bei Erfolg <b><tt class='constant'>TRUE</tt></b> zur&amp;uuml;ck, im Fehlerfall <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.gzclose.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>gzclose()</b> Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$gz&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>gzopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'somefile.gz'</span><span style='color: #007700'>,</span><span style='color: #DD0000'>'w9'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>gzputs&amp;nbsp;</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'Ich&amp;nbsp;wurde&amp;nbsp;zu&amp;nbsp;somefile.gz&amp;nbsp;hinzugef&amp;uuml;gt'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>gzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$gz</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.gzclose.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - &amp;Ouml;ffnet gz-Dateien</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="bzwrite" value="<div id='function.bzwrite' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.bzwrite.php'>bzwrite</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>bzwrite</span> &amp;mdash; <span class='dc-title'>Bin&amp;auml;r-sicheres Schreiben einer bzip2-Datei</span></p> </div> <a name='function.bzwrite.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>bzwrite</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$bz</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$data</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$length</tt></span> ] )</div> <p class='para rdfs-comment'> <b>bzwrite()</b> schreibt eine Zeichenkette in den &amp;uuml;bergebenen bzip2-Dateistream. </p> </div> <a name='function.bzwrite.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>bz</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Der Dateizeiger. Muss g&amp;uuml;ltig sein und auf eine erfolgreich von <a href='http://www.php.net/manual/de/function.bzopen.php' class='function'>bzopen()</a> ge&amp;ouml;ffnete Datei zeigen. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die zu schreibenden Daten. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Wird dieser Parameter &amp;uuml;bergeben, stoppt das Schreiben nach <i><tt class='parameter'>length</tt></i> (unkomprimiert) geschriebenen Bytes oder wenn alle Bytes aus <i><tt class='parameter'>data</tt></i> geschrieben wurden, je nachdem, welcher Fall zuerst auftritt. </p> </dd> </dl> <p> </p> </div> <a name='function.bzwrite.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt die Anzahl der geschriebenen Bytes bzw. <b><tt class='constant'>FALSE</tt></b> im Falle eines Fehlers zur&amp;uuml;ck. </p> </div> <a name='function.bzwrite.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>bzwrite()</b>-Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$str&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'uncompressed&amp;nbsp;data'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>$bz&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>bzopen</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'/tmp/foo.bz2'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'w'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>bzwrite</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$bz</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>$str</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>strlen</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$str</span><span style='color: #007700'>));<br /></span><span style='color: #0000BB'>bzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$bz</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.bzwrite.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.bzread.php' class='function' rel='rdfs-seeAlso'>bzread()</a> - Bin&amp;auml;r-sicheres Lesen aus einer bzip2-Datei</li> <li class='member'><a href='http://www.php.net/manual/de/function.bzopen.php' class='function' rel='rdfs-seeAlso'>bzopen()</a> - &amp;Ouml;ffnet eine bzip2-komprimierte Datei</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="bzread" value="<div id='function.bzread' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.bzread.php'>bzread</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>bzread</span> &amp;mdash; <span class='dc-title'>Bin&amp;auml;r-sicheres Lesen aus einer bzip2-Datei</span></p> </div> <a name='function.bzread.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>bzread</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$bz</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$length</tt><span class='initializer'> = 1024</span></span> ] )</div> <p class='para rdfs-comment'> <b>bzread()</b> liest Daten vom &amp;uuml;bergebenen bzip2-Dateizeiger. </p> <p class='para'> Das Lesen wird beendet, wenn <i><tt class='parameter'>length</tt></i> (unkomprimierte) Bytes gelesen wurden oder das Ende der Datei (EOF) erreicht ist, je nachdem, welcher Fall zuerst auftritt. </p> </div> <a name='function.bzread.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>bz</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Der Dateizeiger. Es muss ein valider Zeiger sein und auf eine Datei zeigen, die erfolgreich mittels <a href='http://www.php.net/manual/de/function.bzopen.php' class='function'>bzopen()</a> ge&amp;ouml;ffnet wurde. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Wenn nichts angegeben ist, liest <b>bzread()</b> 1024 (unkomprimierte) Bytes auf einmal. </p> </dd> </dl> <p> </p> </div> <a name='function.bzread.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt die unkomprimierten Daten oder im Fehlerfall <b><tt class='constant'>FALSE</tt></b> zur&amp;uuml;ck. </p> </div> <a name='function.bzread.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>bzread()</b>-Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /><br />$file&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'/tmp/foo.bz2'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>$bz&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>bzopen</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$file</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'r'</span><span style='color: #007700'>)&amp;nbsp;or&amp;nbsp;die(</span><span style='color: #DD0000'>'Konnte&amp;nbsp;</span><span style='color: #0000BB'>$file</span><span style='color: #DD0000'>&amp;nbsp;nicht&amp;nbsp;&amp;ouml;ffnen'</span><span style='color: #007700'>);<br /><br /></span><span style='color: #0000BB'>$decompressed_file&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>''</span><span style='color: #007700'>;<br />while&amp;nbsp;(!</span><span style='color: #0000BB'>feof</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$bz</span><span style='color: #007700'>))&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$decompressed_file&amp;nbsp;</span><span style='color: #007700'>.=&amp;nbsp;</span><span style='color: #0000BB'>bzread</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$bz</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>4096</span><span style='color: #007700'>);<br />}<br /></span><span style='color: #0000BB'>bzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$bz</span><span style='color: #007700'>);<br /><br />echo&amp;nbsp;</span><span style='color: #DD0000'>'Der&amp;nbsp;Inhalt&amp;nbsp;von&amp;nbsp;</span><span style='color: #0000BB'>$file</span><span style='color: #DD0000'>&amp;nbsp;ist:&amp;nbsp;&amp;lt;br&amp;nbsp;/&amp;gt;\n'</span><span style='color: #007700'>;<br />echo&amp;nbsp;</span><span style='color: #0000BB'>$decompressed_file</span><span style='color: #007700'>;<br /><br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.bzread.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.bzwrite.php' class='function' rel='rdfs-seeAlso'>bzwrite()</a> - Bin&amp;auml;r-sicheres Schreiben einer bzip2-Datei</li> <li class='member'><a href='http://www.php.net/manual/de/function.feof.php' class='function' rel='rdfs-seeAlso'>feof()</a> - Pr&amp;uuml;ft, ob der Dateizeiger am Ende der Datei steht</li> <li class='member'><a href='http://www.php.net/manual/de/function.bzopen.php' class='function' rel='rdfs-seeAlso'>bzopen()</a> - &amp;Ouml;ffnet eine bzip2-komprimierte Datei</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="bzopen" value="<div id='function.bzopen' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.bzopen.php'>bzopen</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>bzopen</span> &amp;mdash; <span class='dc-title'>&amp;Ouml;ffnet eine bzip2-komprimierte Datei</span></p> </div> <a name='function.bzopen.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>resource</span> <span class='methodname'><b>bzopen</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$filename</tt></span> , <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$mode</tt></span> )</div> <p class='para rdfs-comment'> &amp;Ouml;ffnet eine bzip2-Datei (.bz2) zum Lesen oder Schreiben. </p> </div> <a name='function.bzopen.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>filename</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Name der zu &amp;ouml;ffnenden Datei. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Wie bei der Funktion <a href='http://www.php.net/manual/de/function.fopen.php' class='function'>fopen()</a> (&amp;#039;r&amp;#039; f&amp;uuml;r lesenden, &amp;#039;w&amp;#039; f&amp;uuml;r schreibenden Zugriff usw.). </p> </dd> </dl> <p> </p> </div> <a name='function.bzopen.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Wenn das &amp;Ouml;ffnen fehlschl&amp;auml;gt, gibt <b>bzopen()</b> <b><tt class='constant'>FALSE</tt></b> zur&amp;uuml;ck, andernfalls wird ein Zeiger auf die ge&amp;ouml;ffnete Datei zur&amp;uuml;ckgegeben. </p> </div> <a name='function.bzopen.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>bzopen()</b>-Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /><br />$file&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'/tmp/foo.bz2'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>$bz&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>bzopen</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$file</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'r'</span><span style='color: #007700'>)&amp;nbsp;or&amp;nbsp;die(</span><span style='color: #DD0000'>'</span><span style='color: #0000BB'>$file</span><span style='color: #DD0000'>&amp;nbsp;konnte&amp;nbsp;nicht&amp;nbsp;zum&amp;nbsp;Lesen&amp;nbsp;ge&amp;ouml;ffnet&amp;nbsp;werden'</span><span style='color: #007700'>);<br /><br /></span><span style='color: #0000BB'>bzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$bz</span><span style='color: #007700'>);<br /><br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.bzopen.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.bzclose.php' class='function' rel='rdfs-seeAlso'>bzclose()</a> - Schlie&amp;szlig;t eine bzip2-Datei</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="bzflush" value="<div id='function.bzflush' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.bzflush.php'>bzflush</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>bzflush</span> &amp;mdash; <span class='dc-title'>Erzwingt das Schreiben aller gepufferten Daten</span></p> </div> <a name='function.bzflush.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>bzflush</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$bz</tt></span> )</div> <p class='para rdfs-comment'> Erzwingt das Schreiben aller gepufferten bzip2-Daten f&amp;uuml;r den Dateizeiger <i><tt class='parameter'>bz</tt></i> . </p> </div> <a name='function.bzflush.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>bz</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Zeiger auf eine erfolgreich mittels <a href='http://www.php.net/manual/de/function.bzopen.php' class='function'>bzopen()</a> ge&amp;ouml;ffnete Datei. </p> </dd> </dl> <p> </p> </div> <a name='function.bzflush.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt bei Erfolg <b><tt class='constant'>TRUE</tt></b> zur&amp;uuml;ck, im Fehlerfall <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.bzflush.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.bzread.php' class='function' rel='rdfs-seeAlso'>bzread()</a> - Bin&amp;auml;r-sicheres Lesen aus einer bzip2-Datei</li> <li class='member'><a href='http://www.php.net/manual/de/function.bzwrite.php' class='function' rel='rdfs-seeAlso'>bzwrite()</a> - Bin&amp;auml;r-sicheres Schreiben einer bzip2-Datei</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="bzerrstr" value="<div id='function.bzerrstr' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.bzerrstr.php'>bzerrstr</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>bzerrstr</span> &amp;mdash; <span class='dc-title'>Gibt eine bzip2-Fehlermeldung zur&amp;Atilde;&amp;frac14;ck</span></p> </div> <a name='function.bzerrstr.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>string</span> <span class='methodname'><b>bzerrstr</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$bz</tt></span> )</div> <p class='para rdfs-comment'> Gibt die Fehlermeldung eines bzip2-Fehlers zur&amp;Atilde;&amp;frac14;ck, der vom gegebenen Dateizeiger zur&amp;Atilde;&amp;frac14;ckgegeben wird. </p> </div> <a name='function.bzerrstr.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>bz</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Zeiger auf eine erfolgreich mittels <a href='http://www.php.net/manual/de/function.bzopen.php' class='function'>bzopen()</a> ge&amp;Atilde;&amp;para;ffnete Datei. </p> </dd> </dl> <p> </p> </div> <a name='function.bzerrstr.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt eine Zeichenkette mit der Fehlermeldung zur&amp;Atilde;&amp;frac14;ck. </p> </div> <a name='function.bzerrstr.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.bzerrno.php' class='function' rel='rdfs-seeAlso'>bzerrno()</a> - Gibt eine bzip2-Fehlernummer zur&amp;uuml;ck</li> <li class='member'><a href='http://www.php.net/manual/de/function.bzerror.php' class='function' rel='rdfs-seeAlso'>bzerror()</a> - Gibt die bzip2-Fehlernummer und die -Fehlermeldung in einem Array zur&amp;uuml;ck</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="bzerror" value="<div id='function.bzerror' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.bzerror.php'>bzerror</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>bzerror</span> &amp;mdash; <span class='dc-title'> Gibt die bzip2-Fehlernummer und die -Fehlermeldung in einem Array zur&amp;uuml;ck </span></p> </div> <a name='function.bzerror.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>array</span> <span class='methodname'><b>bzerror</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$bz</tt></span> )</div> <p class='para rdfs-comment'> Gibt die Fehlernummer und die Fehlermeldung eines beliebigen vom gegebenen Dateizeiger gelieferten bzip2-Fehlers zur&amp;uuml;ck. </p> </div> <a name='function.bzerror.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>bz</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Zeiger auf eine erfolgreich mittels <a href='http://www.php.net/manual/de/function.bzopen.php' class='function'>bzopen()</a> ge&amp;ouml;ffnete Datei. </p> </dd> </dl> <p> </p> </div> <a name='function.bzerror.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt ein assoziatives Array zur&amp;uuml;ck, das die Fehlernummer im <i>errno</i>-Eintrag und die Fehlermeldung im <i>errstr</i>-Eintrag enth&amp;auml;lt. </p> </div> <a name='function.bzerror.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 <b>bzerror()</b>-Beispiel</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$error&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>bzerror</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$bz</span><span style='color: #007700'>);<br /><br />echo&amp;nbsp;</span><span style='color: #0000BB'>$error</span><span style='color: #007700'>[</span><span style='color: #DD0000'>'errno'</span><span style='color: #007700'>];<br />echo&amp;nbsp;</span><span style='color: #0000BB'>$error</span><span style='color: #007700'>[</span><span style='color: #DD0000'>'errstr'</span><span style='color: #007700'>];<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.bzerror.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.bzerrno.php' class='function' rel='rdfs-seeAlso'>bzerrno()</a> - Gibt eine bzip2-Fehlernummer zur&amp;uuml;ck</li> <li class='member'><a href='http://www.php.net/manual/de/function.bzerrstr.php' class='function' rel='rdfs-seeAlso'>bzerrstr()</a> - Gibt eine bzip2-Fehlermeldung zur&amp;Atilde;&amp;frac14;ck</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="bzerrno" value="<div id='function.bzerrno' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.bzerrno.php'>bzerrno</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>bzerrno</span> &amp;mdash; <span class='dc-title'>Gibt eine bzip2-Fehlernummer zur&amp;uuml;ck</span></p> </div> <a name='function.bzerrno.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>bzerrno</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$bz</tt></span> )</div> <p class='para rdfs-comment'> Gibt die Fehlernummer eines beliebigen bzip2-Fehlers, der von &amp;uuml;bergebenen Dateizeiger zur&amp;uuml;ckgegeben wird. </p> </div> <a name='function.bzerrno.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>bz</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Zeiger auf eine erfolgreich mittels <a href='http://www.php.net/manual/de/function.bzopen.php' class='function'>bzopen()</a> ge&amp;ouml;ffnete Datei. </p> </dd> </dl> <p> </p> </div> <a name='function.bzerrno.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt die Fehlernummer als Integer zur&amp;uuml;ck. </p> </div> <a name='function.bzerrno.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.bzerror.php' class='function' rel='rdfs-seeAlso'>bzerror()</a> - Gibt die bzip2-Fehlernummer und die -Fehlermeldung in einem Array zur&amp;uuml;ck</li> <li class='member'><a href='http://www.php.net/manual/de/function.bzerrstr.php' class='function' rel='rdfs-seeAlso'>bzerrstr()</a> - Gibt eine bzip2-Fehlermeldung zur&amp;Atilde;&amp;frac14;ck</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="bzdecompress" value="<div id='function.bzdecompress' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.bzdecompress.php'>bzdecompress</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>bzdecompress</span> &amp;mdash; <span class='dc-title'>Dekomprimiert bzip2-kodierte Daten</span></p> </div> <a name='function.bzdecompress.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'><a href='http://www.php.net/manual/de/language.pseudo-types.php#language.types.mixed' class='type mixed'>mixed</a></span> <span class='methodname'><b>bzdecompress</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$source</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$small</tt><span class='initializer'> = 0</span></span> ] )</div> <p class='para rdfs-comment'> <b>bzdecompress()</b> dekomprimiert die &amp;uuml;bergebene Zeichenkette, die bzip2-kodierte Daten enth&amp;auml;lt. </p> </div> <a name='function.bzdecompress.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>source</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Zu dekomprimierende Zeichenkette </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>small</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Wenn <b><tt class='constant'>TRUE</tt></b>, wird ein alternativer Dekompressionsalgorithmus verwendet, der weniger Speicher ben&amp;ouml;tigt. Es werden dann nur maximal etwa 2300K ben&amp;ouml;tigt, allerdings findet die Dekompression nur mit etwa halber Geschwindigkeit statt. </p> <p class='para'> Weitere Details finden sich in der <a href='http://www.bzip.org/' class='link external'>&amp;raquo; bzip2-Dokumentation</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.bzdecompress.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Die dekomprimierte Zeichenkette oder Fehlernummer im Falle eines Fehlers. </p> </div> <a name='function.bzdecompress.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <p class='para'> </p><div class='example'> <p><b>Beispiel #1 Dekomprimieren einer Zeichenkette</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$start_str&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'Ist&amp;nbsp;dies&amp;nbsp;nicht&amp;nbsp;ein&amp;nbsp;ernstes&amp;nbsp;Gesicht?'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>$bzstr&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>bzcompress</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$start_str</span><span style='color: #007700'>);<br /><br />echo&amp;nbsp;</span><span style='color: #DD0000'>'Komprimierte&amp;nbsp;Zeichenkette:&amp;nbsp;'</span><span style='color: #007700'>;<br />echo&amp;nbsp;</span><span style='color: #0000BB'>$bzstr</span><span style='color: #007700'>;<br />echo&amp;nbsp;</span><span style='color: #DD0000'>'\n&amp;lt;br&amp;nbsp;/&amp;gt;\n'</span><span style='color: #007700'>;<br /><br /></span><span style='color: #0000BB'>$str&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>bzdecompress</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$bzstr</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #DD0000'>'Dekomprimierte&amp;nbsp;Zeichenkette:&amp;nbsp;'</span><span style='color: #007700'>;<br />echo&amp;nbsp;</span><span style='color: #0000BB'>$str</span><span style='color: #007700'>;<br />echo&amp;nbsp;</span><span style='color: #DD0000'>'\n&amp;lt;br&amp;nbsp;/&amp;gt;\n'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> </div> <a name='function.bzdecompress.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.bzcompress.php' class='function' rel='rdfs-seeAlso'>bzcompress()</a> - Komprimiert eine Zeichenkette in bzip2-encodierte Daten</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="bzcompress" value="<div id='function.bzcompress' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.bzcompress.php'>bzcompress</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>bzcompress</span> &amp;mdash; <span class='dc-title'>Komprimiert eine Zeichenkette in bzip2-encodierte Daten</span></p> </div> <a name='function.bzcompress.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'><a href='http://www.php.net/manual/de/language.pseudo-types.php#language.types.mixed' class='type mixed'>mixed</a></span> <span class='methodname'><b>bzcompress</b></span> ( <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$source</tt></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$blocksize</tt><span class='initializer'> = 4</span></span> [, <span class='methodparam'><span class='type'>int</span> <tt class='parameter'>$workfactor</tt><span class='initializer'> = 0</span></span> ]] )</div> <p class='para rdfs-comment'> <b>bzcompress()</b> komprimiert den &amp;uuml;bergebenen String und gibt ihn als bzip2-komprimierte Daten zur&amp;uuml;ck. </p> </div> <a name='function.bzcompress.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>source</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Die zu komprimierende Zeichenkette. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>blocksize</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Spezifiziert die Blockgr&amp;ouml;&amp;szlig;e w&amp;auml;hrend der Komprierung und darf zwischen 1 und 9 liegen. 9 ist dabei die beste Komprimierung, die allerdings mehr Ressourcen ben&amp;ouml;tigt. Voreinstellung des <i><tt class='parameter'>blocksize</tt></i> Parameters ist 4. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>workfactor</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Bestimmt, wie die Funktion sich im schlimmsten Fall, sich stark wiederholender Eingabedaten, verh&amp;auml;lt. Der Wert darf zwischen 0 und 250 liegen, wobei 0 ein spezieller Wert ist. </p> <p class='para'> Unabh&amp;auml;ngig vom <i><tt class='parameter'>workfactor</tt></i> -Parameter wird die generierte Ausgabe stets gleich bleiben. </p> </dd> </dl> <p> </p> </div> <a name='function.bzcompress.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Die komprimierte Zeichenkette oder die Fehlernummer im Falle eines Fehlers. </p> </div> <a name='function.bzcompress.examples'></a><div class='refsect1 examples'> <h3 class='title'>Beispiele</h3> <div class='example'> <p><b>Beispiel #1 Komprimierung von Daten</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$str&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'sample&amp;nbsp;data'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>$bzstr&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>bzcompress</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$str</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #0000BB'>9</span><span style='color: #007700'>);<br />echo&amp;nbsp;</span><span style='color: #0000BB'>$bzstr</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div> </div> <a name='function.bzcompress.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.bzdecompress.php' class='function' rel='rdfs-seeAlso'>bzdecompress()</a> - Dekomprimiert bzip2-kodierte Daten</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="bzclose" value="<div id='function.bzclose' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/de/function.bzclose.php'>bzclose</a></h1> <p class='verinfo'>(PHP 4 &amp;gt;= 4.0.4, PHP 5)</p><p class='refpurpose'><span class='refname'>bzclose</span> &amp;mdash; <span class='dc-title'>Schlie&amp;szlig;t eine bzip2-Datei</span></p> </div> <a name='function.bzclose.description'></a><div class='refsect1 description'> <h3 class='title'>Beschreibung</h3> <div class='methodsynopsis dc-description'> <span class='type'>int</span> <span class='methodname'><b>bzclose</b></span> ( <span class='methodparam'><span class='type'>resource</span> <tt class='parameter'>$bz</tt></span> )</div> <p class='para rdfs-comment'> Schlie&amp;szlig;t die vom &amp;uuml;bergebenen Dateizeiger bezeichnete bzip2-Datei. </p> </div> <a name='function.bzclose.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Parameter-Liste</h3> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>bz</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Der Dateizeiger. Dieser muss eine valide Ressource sein und muss auf eine Datei zeigen, die erfolgreich mittels <a href='http://www.php.net/manual/de/function.bzopen.php' class='function'>bzopen()</a> ge&amp;ouml;ffnet wurde. </p> </dd> </dl> <p> </p> </div> <a name='function.bzclose.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>R&amp;uuml;ckgabewerte</h3> <p class='para'> Gibt bei Erfolg <b><tt class='constant'>TRUE</tt></b> zur&amp;uuml;ck, im Fehlerfall <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.bzclose.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Siehe auch</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/de/function.bzopen.php' class='function' rel='rdfs-seeAlso'>bzopen()</a> - &amp;Ouml;ffnet eine bzip2-komprimierte Datei</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
</strings>

