<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/fr/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'>Retourne la m&amp;eacute;thode de compression utilis&amp;eacute;e avec Gzip</span></p> </div> <a name='function.zlib-get-coding-type.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>zlib_get_coding_type()</b> retourne la m&amp;eacute;thode de compression utilis&amp;eacute;e avec Gzip. </p> </div> <a name='function.zlib-get-coding-type.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Les valeurs possibles de retour sont <i>gzip</i>, <i>deflate</i> ou <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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'> La directive <a href='http://www.php.net/manual/fr/zlib.configuration.php#ini.zlib.output-compression' class='link'>zlib.output_compression</a> directive </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/fr/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'>Lit la prochaine entr&amp;eacute;e dans une archive ZIP</span></p> </div> <a name='function.zip-read.description'></a><div class='refsect1 description'> <h3 class='title'>Description</h3> <div class='methodsynopsis dc-description'> <span class='type'><a href='http://www.php.net/manual/fr/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'> <b>zip_read()</b> lit la prochaine entr&amp;eacute;e dans une archive ZIP. </p> </div> <a name='function.zip-read.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Un fichier ZIP pr&amp;eacute;c&amp;eacute;demment ouvert avec la fonction <a href='http://www.php.net/manual/fr/function.zip-open.php' class='function'>zip_open()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-read.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne une ressource de dossier d&amp;#039;archive, &amp;agrave; utiliser plus tard avec les autres fonctions de la biblioth&amp;egrave;que, <b><tt class='constant'>FALSE</tt></b> s&amp;#039;il n&amp;#039;y a plus d&amp;#039;entr&amp;eacute;es &amp;agrave; lire dans l&amp;#039;archive ZIP ou le num&amp;eacute;ro de l&amp;#039;erreur dans le cas d&amp;#039;une autre erreur. </p> </div> <a name='function.zip-read.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - Ouvre une archive ZIP</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-close.php' class='function' rel='rdfs-seeAlso'>zip_close()</a> - Ferme une archive Zip</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-entry-open.php' class='function' rel='rdfs-seeAlso'>zip_entry_open()</a> - Ouvre un dossier d'archives en lecture</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-entry-read.php' class='function' rel='rdfs-seeAlso'>zip_entry_read()</a> - Lit le contenu d'un fichier dans un dossier</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/fr/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'>Ouvre une archive ZIP</span></p> </div> <a name='function.zip-open.description'></a><div class='refsect1 description'> <h3 class='title'>Description</h3> <div class='methodsynopsis dc-description'> <span class='type'><a href='http://www.php.net/manual/fr/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'> <b>zip_open()</b> ouvre une nouvelle archive ZIP pour lecture. </p> </div> <a name='function.zip-open.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le nom du fichier de l&amp;#039;archive ZIP &amp;agrave; ouvrir. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-open.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne une ressource &amp;agrave; utiliser plus tard avec les fonctions <a href='http://www.php.net/manual/fr/function.zip-read.php' class='function'>zip_read()</a> et <a href='http://www.php.net/manual/fr/function.zip-close.php' class='function'>zip_close()</a>, ou bien retourne le num&amp;eacute;ro de l&amp;#039;erreur si le param&amp;egrave;tre <i><tt class='parameter'>filename</tt></i> n&amp;#039;existe pas ou dans le cas d&amp;#039;une autre erreur. </p> </div> <a name='function.zip-open.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Lit la prochaine entr&amp;eacute;e dans une archive ZIP</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-close.php' class='function' rel='rdfs-seeAlso'>zip_close()</a> - Ferme une archive Zip</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/fr/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'>Lit le contenu d&amp;#039;un fichier dans un dossier</span></p> </div> <a name='function.zip-entry-read.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>zip_entry_read()</b> lit dans un dossier d&amp;#039;archives ouvert. </p> </div> <a name='function.zip-entry-read.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Un dossier d&amp;#039;archives retourn&amp;eacute; par la fonction <a href='http://www.php.net/manual/fr/function.zip-read.php' class='function'>zip_read()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le nombre d&amp;#039;octets &amp;agrave; retourner. Si ce param&amp;egrave;tre est omis, la fonction tentera de lire 1024 octets. </p> <blockquote><p><b class='note'>Note</b>: Ceci doit &amp;ecirc;tre la taille non-compress&amp;eacute;e que vous voulez lire. <br /> </p></blockquote> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-read.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne les donn&amp;eacute;es lues ou <b><tt class='constant'>FALSE</tt></b> si la fin du fichier est atteinte. </p> </div> <a name='function.zip-entry-read.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-entry-open.php' class='function' rel='rdfs-seeAlso'>zip_entry_open()</a> - Ouvre un dossier d'archives en lecture</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-entry-close.php' class='function' rel='rdfs-seeAlso'>zip_entry_close()</a> - Ferme un dossier d'archive</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-entry-filesize.php' class='function' rel='rdfs-seeAlso'>zip_entry_filesize()</a> - Lit la taille d&amp;eacute;compress&amp;eacute;e d'un dossier d'archives</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/fr/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'>Ouvre un dossier d&amp;#039;archives en lecture</span></p> </div> <a name='function.zip-entry-open.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>zip_entry_open()</b> ouvre un dossier dans un fichier ZIP pour lecture. </p> </div> <a name='function.zip-entry-open.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Une ressource valide retourn&amp;eacute;e par la fonction <a href='http://www.php.net/manual/fr/function.zip-open.php' class='function'>zip_open()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>zip_entry</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Un dossier d&amp;#039;archives retourn&amp;eacute; par la fonction <a href='http://www.php.net/manual/fr/function.zip-read.php' class='function'>zip_read()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Toutes les m&amp;eacute;thodes sp&amp;eacute;cifi&amp;eacute;es dans la documentation de la fonction <a href='http://www.php.net/manual/fr/function.fopen.php' class='function'>fopen()</a>. </p> <blockquote><p><b class='note'>Note</b>: Actuellement, <i><tt class='parameter'>mode</tt></i> est ignor&amp;eacute; et vaut toujours <i>&amp;quot;rb&amp;quot;</i>. Cela est d&amp;ucirc; au fait que le support ZIP de PHP est uniquement en lecture seule. <br /> </p></blockquote> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-open.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> en cas de succ&amp;egrave;s ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> <blockquote><p><b class='note'>Note</b>: Contrairement &amp;agrave; <a href='http://www.php.net/manual/fr/function.fopen.php' class='function'>fopen()</a> et les autres fonctions de fichiers, la valeur retourn&amp;eacute;e par <b>zip_entry_open()</b> indique uniquement le r&amp;eacute;sultat de l&amp;#039;op&amp;eacute;ration, et n&amp;#039;est pas n&amp;eacute;cessaire pour la lecture ou la fermeture du fichier de dossier d&amp;#039;archives. <br /> </p></blockquote> </div> <a name='function.zip-entry-open.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-entry-close.php' class='function' rel='rdfs-seeAlso'>zip_entry_close()</a> - Ferme un dossier d'archive</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-entry-read.php' class='function' rel='rdfs-seeAlso'>zip_entry_read()</a> - Lit le contenu d'un fichier dans un dossier</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/fr/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'>Lit le nom d&amp;#039;un dossier d&amp;#039;archives</span></p> </div> <a name='function.zip-entry-name.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>zip_entry_name()</b> retourne le nom d&amp;#039;un dossier d&amp;#039;archives donn&amp;eacute;. </p> </div> <a name='function.zip-entry-name.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Un dossier d&amp;#039;archives retourn&amp;eacute; par la fonction <a href='http://www.php.net/manual/fr/function.zip-read.php' class='function'>zip_read()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-name.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Le nom du dossier d&amp;#039;archives. </p> </div> <a name='function.zip-entry-name.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - Ouvre une archive ZIP</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Lit la prochaine entr&amp;eacute;e dans une archive ZIP</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/fr/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'>Lit la taille d&amp;eacute;compress&amp;eacute;e d&amp;#039;un dossier d&amp;#039;archives</span></p> </div> <a name='function.zip-entry-filesize.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>zip_entry_filesize()</b> retourne la taille d&amp;eacute;compress&amp;eacute;e d&amp;#039;un dossier d&amp;#039;archives donn&amp;eacute;. </p> </div> <a name='function.zip-entry-filesize.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Un dossier d&amp;#039;archives retourn&amp;eacute; par la fonction <a href='http://www.php.net/manual/fr/function.zip-read.php' class='function'>zip_read()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-filesize.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La taille d&amp;eacute;compress&amp;eacute;e du dossier d&amp;#039;archives. </p> </div> <a name='function.zip-entry-filesize.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - Ouvre une archive ZIP</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Lit la prochaine entr&amp;eacute;e dans une archive ZIP</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/fr/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'>Lit la m&amp;eacute;thode de compression utilis&amp;eacute;e sur un dossier d&amp;#039;archives</span></p> </div> <a name='function.zip-entry-compressionmethod.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>zip_entry_compressionmethod()</b> retourne la m&amp;eacute;thode de compression utilis&amp;eacute;e sur le dossier d&amp;#039;archives sp&amp;eacute;cifi&amp;eacute; par <i><tt class='parameter'>zip_entry</tt></i> . </p> </div> <a name='function.zip-entry-compressionmethod.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Un dossier d&amp;#039;archives retourn&amp;eacute; par la fonction <a href='http://www.php.net/manual/fr/function.zip-read.php' class='function'>zip_read()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-compressionmethod.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La m&amp;eacute;thode de compression. </p> </div> <a name='function.zip-entry-compressionmethod.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - Ouvre une archive ZIP</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Lit la prochaine entr&amp;eacute;e dans une archive ZIP</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/fr/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'>Lit la taille compress&amp;eacute;e d&amp;#039;un dossier d&amp;#039;archives</span></p> </div> <a name='function.zip-entry-compressedsize.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>zip_entry_compressedsize()</b> retourne la taille compress&amp;eacute;e d&amp;#039;un dossier d&amp;#039;archives donn&amp;eacute;. </p> </div> <a name='function.zip-entry-compressedsize.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Un dossier d&amp;#039;archives retourn&amp;eacute; par la fonction <a href='http://www.php.net/manual/fr/function.zip-read.php' class='function'>zip_read()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-compressedsize.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La taille compress&amp;eacute;e. </p> </div> <a name='function.zip-entry-compressedsize.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - Ouvre une archive ZIP</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Lit la prochaine entr&amp;eacute;e dans une archive ZIP</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/fr/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'>Ferme un dossier d&amp;#039;archive</span></p> </div> <a name='function.zip-entry-close.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>zip_entry_close()</b> ferme un dossier d&amp;#039;archive donn&amp;eacute;. </p> </div> <a name='function.zip-entry-close.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Un dossier d&amp;#039;archive pr&amp;eacute;c&amp;eacute;demment ouvert avec la fonction <a href='http://www.php.net/manual/fr/function.zip-entry-open.php' class='function'>zip_entry_open()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-entry-close.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> en cas de succ&amp;egrave;s ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.zip-entry-close.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-entry-open.php' class='function' rel='rdfs-seeAlso'>zip_entry_open()</a> - Ouvre un dossier d'archives en lecture</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-entry-read.php' class='function' rel='rdfs-seeAlso'>zip_entry_read()</a> - Lit le contenu d'un fichier dans un dossier</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/fr/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'>Ferme une archive Zip</span></p> </div> <a name='function.zip-close.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>zip_close()</b> ferme l&amp;#039;archive ZIP donn&amp;eacute;e. </p> </div> <a name='function.zip-close.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Un fichier ZIP pr&amp;eacute;c&amp;eacute;demment ouvert avec la fonction <a href='http://www.php.net/manual/fr/function.zip-open.php' class='function'>zip_open()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.zip-close.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Aucune valeur n&amp;#039;est retourn&amp;eacute;e. </p> </div> <a name='function.zip-close.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-open.php' class='function' rel='rdfs-seeAlso'>zip_open()</a> - Ouvre une archive ZIP</li> <li class='member'><a href='http://www.php.net/manual/fr/function.zip-read.php' class='function' rel='rdfs-seeAlso'>zip_read()</a> - Lit la prochaine entr&amp;eacute;e dans une archive ZIP</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/fr/class.ziparchive.php'>La classe <a href='http://www.php.net/manual/fr/class.ziparchive.php' class='classname'>ZipArchive</a></a></h1> <div class='partintro'> <div id='ziparchive.intro' class='section'> <h2 class='title'>Introduction</h2> <p class='para'> Un fichier d&amp;#039;archive, compress&amp;eacute; Zip. </p> </div> <div id='ziparchive.synopsis' class='section'> <h2 class='title'>Synopsis de la classe</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'>/* Propri&amp;eacute;t&amp;eacute;s */</div> <div class='classsynopsisinfo classsynopsisinfo_comment'>/* M&amp;eacute;thodes */</div> <div class='methodsynopsis dc-description'> <span class='type'>bool</span> <span class='methodname'><a href='http://www.php.net/manual/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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'>Propri&amp;eacute;t&amp;eacute;s</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'>Le statut de l&amp;#039;archive Zip</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'>Le statut syst&amp;egrave;me de l&amp;#039;archive Zip</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'>Le nombre de fichiers dans l&amp;#039;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'>Le nom du fichier dans le syst&amp;egrave;me de fichiers</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'>Commentaire pour l&amp;#039;archive</p> </dd> </dl> </div> </div> <h2>Sommaire</h2><ul class='chunklist chunklist_reference'><li><a href='http://www.php.net/manual/fr/function.ziparchive-addemptydir.php'>ZipArchive::addEmptyDir</a> &amp;mdash; Ajoute un nouveau dossier &amp;agrave; une archive Zip</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-addfile.php'>ZipArchive::addFile</a> &amp;mdash; Ajoute un fichier &amp;agrave; l'archive ZIP depuis le chemin fourni</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-addfromstring.php'>ZipArchive::addFromString</a> &amp;mdash; Ajoute un fichier &amp;agrave; une archive ZIP en utilisant son contenu</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-close.php'>ZipArchive::close</a> &amp;mdash; Ferme l'archive active</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-deleteindex.php'>ZipArchive::deleteIndex</a> &amp;mdash; Efface une entr&amp;eacute;e de l'archive en utilisant son index</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-deletename.php'>ZipArchive::deleteName</a> &amp;mdash; Efface une entr&amp;eacute;e dans l'archive en utilisant son nom</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-extractto.php'>ZipArchive::extractTo</a> &amp;mdash; Extrait le contenu de l'archive</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-getarchivecomment.php'>ZipArchive::getArchiveComment</a> &amp;mdash; Retourne le commentaire de l'archive ZIP</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-getcommentindex.php'>ZipArchive::getCommentIndex</a> &amp;mdash; Retourne le commentaire d'une entr&amp;eacute;e</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-getcommentname.php'>ZipArchive::getCommentName</a> &amp;mdash; Retourne le commentaire d'une entr&amp;eacute;e en utilisant le nom de l'entr&amp;eacute;e</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-getfromindex.php'>ZipArchive::getFromIndex</a> &amp;mdash; Retourne le contenu d'une entr&amp;eacute;e en utilisant son index</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-getfromname.php'>ZipArchive::getFromName</a> &amp;mdash; Retourne le contenu de l'entr&amp;eacute;e en utilisant son nom</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-getnameindex.php'>ZipArchive::getNameIndex</a> &amp;mdash; Retourne le nom d'une entr&amp;eacute;e en utilisant son index</li><li><a href='http://www.php.net/manual/fr/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/fr/function.ziparchive-getstream.php'>ZipArchive::getStream</a> &amp;mdash; R&amp;eacute;cup&amp;egrave;re un gestionnaire de fichier pour l'entr&amp;eacute;e d&amp;eacute;finie par son nom (lecture seule)</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-locatename.php'>ZipArchive::locateName</a> &amp;mdash; Retourne l'index d'une entr&amp;eacute;e de l'archive</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-open.php'>ZipArchive::open</a> &amp;mdash; Ouvre une archive ZIP</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-renameindex.php'>ZipArchive::renameIndex</a> &amp;mdash; Renomme une entr&amp;eacute;e d&amp;eacute;finie par son index</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-renamename.php'>ZipArchive::renameName</a> &amp;mdash; Renomme une entr&amp;eacute;e d&amp;eacute;finie par son nom</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-setarchivecomment.php'>ZipArchive::setArchiveComment</a> &amp;mdash; D&amp;eacute;finit le commentaire d'une archive ZIP</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-setcommentindex.php'>ZipArchive::setCommentIndex</a> &amp;mdash; D&amp;eacute;finit le commentaire d'une entr&amp;eacute;e d&amp;eacute;finie par son index</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-setCommentName.php'>ZipArchive::setCommentName</a> &amp;mdash; D&amp;eacute;finit le commentaire d'une entr&amp;eacute;e sp&amp;eacute;cifi&amp;eacute;e par son nom</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-statindex.php'>ZipArchive::statIndex</a> &amp;mdash; R&amp;eacute;cup&amp;egrave;re les d&amp;eacute;tails d'une entr&amp;eacute;e d&amp;eacute;finie par son index</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-statname.php'>ZipArchive::statName</a> &amp;mdash; R&amp;eacute;cup&amp;egrave;re les d&amp;eacute;tails de l'entr&amp;eacute;e d&amp;eacute;finie par son nom</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-unchangeall.php'>ZipArchive::unchangeAll</a> &amp;mdash; Annule toutes les modifications faites sur l'archive</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-unchangearchive.php'>ZipArchive::unchangeArchive</a> &amp;mdash; Annule toutes les modifications globales faites sur l'archive</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-unchangeindex.php'>ZipArchive::unchangeIndex</a> &amp;mdash; Annule toutes les modifications faites sur une entr&amp;eacute;e, d&amp;eacute;finie par nom index</li><li><a href='http://www.php.net/manual/fr/function.ziparchive-unchangename.php'>ZipArchive::unchangeName</a> &amp;mdash; Annule toutes les modifications faites sur une entr&amp;eacute;e, d&amp;eacute;finie par son nom</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/fr/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'>Lit tout le fichier compress&amp;eacute;</span></p> </div> <a name='function.readgzfile.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>readgzfile()</b> lit le fichier <i><tt class='parameter'>filename</tt></i> , le d&amp;eacute;compresse et affiche le r&amp;eacute;sultat. </p> <p class='para'> <b>readgzfile()</b> peut aussi servir &amp;agrave; lire un fichier qui n&amp;#039;est pas compress&amp;eacute; : dans ce cas, <b>readgzfile()</b> va lire le fichier sans le d&amp;eacute;compresser. </p> </div> <a name='function.readgzfile.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le nom du fichier. Ce fichier devra &amp;ecirc;tre ouvert depuis le syst&amp;egrave;me de fichiers et son contenu sera affich&amp;eacute;. </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'> Vous pouvez d&amp;eacute;finir ce param&amp;egrave;tre optionnel &amp;agrave; <i>1</i>, si vous voulez chercher le fichier &amp;eacute;galement dans l&amp;#039;<a href='http://www.php.net/manual/fr/ini.core.php#ini.include-path' class='link'>include_path</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.readgzfile.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne le nombre d&amp;#039;octets (d&amp;eacute;compress&amp;eacute;s) lus depuis le fichier. Si une erreur survient, <b><tt class='constant'>FALSE</tt></b> est retourn&amp;eacute; et si la fonction n&amp;#039;a pas &amp;eacute;t&amp;eacute; appel&amp;eacute;e de cette fa&amp;ccedil;on : <i>@readgzfile</i>, un message d&amp;#039;erreur sera affich&amp;eacute;. </p> </div> <a name='function.readgzfile.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzpassthru.php' class='function' rel='rdfs-seeAlso'>gzpassthru()</a> - Affiche toutes les donn&amp;eacute;es qui restent dans un pointeur gz</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzfile.php' class='function' rel='rdfs-seeAlso'>gzfile()</a> - Lit la totalit&amp;eacute; d'un fichier compress&amp;eacute;</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - Ouvre un fichier compress&amp;eacute; avec gzip</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/fr/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'>Fonction de rappel pour la compression automatique des tampons</span></p> </div> <a name='function.ob-gzhandler.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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> est destin&amp;eacute;e &amp;agrave; &amp;ecirc;tre utilis&amp;eacute;e comme fonction de rappel par <a href='http://www.php.net/manual/fr/function.ob-start.php' class='function'>ob_start()</a> pour faciliter l&amp;#039;envoi de donn&amp;eacute;es compress&amp;eacute;es aux navigateurs qui supportent les pages compress&amp;eacute;es. Avant que <b>ob_gzhandler()</b> envoie les donn&amp;eacute;es compress&amp;eacute;es, il d&amp;eacute;termine les types d&amp;#039;encodage qui sont support&amp;eacute;s par le navigateur (<i>&amp;quot;gzip&amp;quot;</i>, <i>&amp;quot;deflate&amp;quot;</i> ou aucun) et retourne le contenu des tampons de mani&amp;egrave;re appropri&amp;eacute;e. Tous les navigateurs sont trait&amp;eacute;s, car c&amp;#039;est aux navigateurs d&amp;#039;envoyer un en-t&amp;ecirc;te indiquant les types de pages support&amp;eacute;s. Si le navigateur ne supporte pas les pages compress&amp;eacute;es, cette fonction retournera <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.ob-gzhandler.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'>Valeurs de retour</h3> <p class='para'> </p> </div> <a name='function.ob-gzhandler.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>Historique</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>Version</th> <th>Description</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.0.5</td> <td align='left'> Ajout du param&amp;egrave;tre <i><tt class='parameter'>mode</tt></i> . </td> </tr> </tbody> </table> <p> </p> </div> <a name='function.ob-gzhandler.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>ob_gzhandler()</b></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;Ceci&amp;nbsp;devrait&amp;nbsp;&amp;ecirc;tre&amp;nbsp;une&amp;nbsp;page&amp;nbsp;compress&amp;eacute;e.&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'>Notes</h3> <blockquote><p><b class='note'>Note</b>: <b>ob_gzhandler()</b> n&amp;eacute;cessite l&amp;#039;extension <a href='http://www.php.net/manual/fr/ref.zlib.php' class='link'>zlib</a>. <br /> </p></blockquote> <blockquote><p><b class='note'>Note</b>: Vous ne pouvez pas utiliser simultan&amp;eacute;ment <b>ob_gzhandler()</b> et <a href='http://www.php.net/manual/fr/zlib.configuration.php#ini.zlib.output-compression' class='link'>zlib.output_compression</a>. De plus, notez bien que <a href='http://www.php.net/manual/fr/zlib.configuration.php#ini.zlib.output-compression' class='link'>zlib.output_compression</a> est pr&amp;eacute;f&amp;eacute;rable &amp;agrave; <b>ob_gzhandler()</b>. <br /> </p></blockquote> </div> <a name='function.ob-gzhandler.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.ob-start.php' class='function' rel='rdfs-seeAlso'>ob_start()</a> - Enclenche la tamporisation de sortie</li> <li class='member'><a href='http://www.php.net/manual/fr/function.ob-end-flush.php' class='function' rel='rdfs-seeAlso'>ob_end_flush()</a> - Envoie les donn&amp;eacute;es du tampon de sortie et &amp;eacute;teint la tamporisation de sortie</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/fr/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'>G&amp;eacute;n&amp;egrave;re une cl&amp;eacute;</span></p> </div> <a name='function.mhash-keygen-s2k.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> G&amp;eacute;n&amp;egrave;re une cl&amp;eacute; de <i><tt class='parameter'>bytes</tt></i> octets de long, &amp;agrave; partir d&amp;#039;un mot de passe. </p> <p class='para'> Cette fonction utilise l&amp;#039;algorithme <i>Salted S2K</i>, sp&amp;eacute;cifi&amp;eacute; dans OpenPGP (<a href='http://www.faqs.org/rfcs/rfc2440' class='link external'>&amp;raquo; RFC 2440</a>). </p> <p class='para'> N&amp;#039;oubliez pas que les mots de passe fournis par les utilisateurs ne sont pas conseill&amp;eacute;s pour faire des cl&amp;eacute;s cryptographiques, &amp;eacute;tant donn&amp;eacute; que les utilisateurs normaux retiennent des mots de passe qu&amp;#039;ils peuvent saisir au clavier. Ces mots de passe utilisent uniquement 6 &amp;agrave; 7 des 8 bits d&amp;#039;un caract&amp;egrave;re (voire moins). Il est vivement recommand&amp;eacute; d&amp;#039;appliquer une fonction de transformation (comme celle-ci), &amp;agrave; un mot de passe utilisateur. </p> </div> <a name='function.mhash-keygen-s2k.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> L&amp;#039;identifiant du hash utilis&amp;eacute; pour cr&amp;eacute;er la cl&amp;eacute;. Une parmi les constantes <i>MHASH_XXX</i>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>password</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Mot de passe fourni par l&amp;#039;utilisateur. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>salt</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Doit &amp;ecirc;tre diff&amp;eacute;rent et suffisamment al&amp;eacute;atoire pour chaque cl&amp;eacute; que vous g&amp;eacute;n&amp;eacute;rez, afin d&amp;#039;en cr&amp;eacute;er des diff&amp;eacute;rentes. Ce grain de sel (&amp;quot;salt&amp;quot;) servira &amp;agrave; nouveau lorsque vous v&amp;eacute;rifierez les cl&amp;eacute;s : c&amp;#039;est alors une bonne id&amp;eacute;e que de l&amp;#039;ajouter &amp;agrave; la fin de la cl&amp;eacute; g&amp;eacute;n&amp;eacute;r&amp;eacute;e. <i><tt class='parameter'>salt</tt></i> doit avoir la longueur de 8 octets, et sera compl&amp;eacute;t&amp;eacute; par des 0 si vous ne fournissez par suffisamment de donn&amp;eacute;es. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>bytes</tt></i> </span> </dt><dd class='listitem'> <p class='para'> La longueur de la cl&amp;eacute;, en octets. </p> </dd> </dl> <p> </p> </div> <a name='function.mhash-keygen-s2k.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne la cl&amp;eacute; g&amp;eacute;n&amp;eacute;r&amp;eacute;e, sous la forme d&amp;#039;une <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</a>, ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </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/fr/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'>Retourne le nom du hash</span></p> </div> <a name='function.mhash-get-hash-name.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Retourne le nom du hash sp&amp;eacute;cifi&amp;eacute;. </p> </div> <a name='function.mhash-get-hash-name.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> L&amp;#039;identifiant du hash. Une des constantes <i>MHASH_XXX</i>. </p> </dd> </dl> <p> </p> </div> <a name='function.mhash-get-hash-name.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne le nom du hash ou <b><tt class='constant'>FALSE</tt></b> si le hash n&amp;#039;existe pas. </p> </div> <a name='function.mhash-get-hash-name.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mhash_get_hash_name()</b></b></p> <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'>mhash_get_hash_name</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MHASH_MD5</span><span style='color: #007700'>);&amp;nbsp;</span><span style='color: #FF8000'>//&amp;nbsp;MD5<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_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/fr/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'>Retourne la taille de bloc du hash</span></p> </div> <a name='function.mhash-get-block-size.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Retourne la taille de bloc du hash sp&amp;eacute;cifi&amp;eacute;. </p> </div> <a name='function.mhash-get-block-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> L&amp;#039;identifiant du hash. Une des constantes <i>MHASH_XXX</i>. </p> </dd> </dl> <p> </p> </div> <a name='function.mhash-get-block-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne la taille, en octets, ou <b><tt class='constant'>FALSE</tt></b> si le hash n&amp;#039;existe pas. </p> </div> <a name='function.mhash-get-block-size.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mhash_get_block_size()</b></b></p> <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'>mhash_get_block_size</span><span style='color: #007700'>(</span><span style='color: #0000BB'>MHASH_MD5</span><span style='color: #007700'>);&amp;nbsp;</span><span style='color: #FF8000'>//&amp;nbsp;16<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_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/fr/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'>R&amp;eacute;cup&amp;egrave;re l&amp;#039;identifiant maximal de hash</span></p> </div> <a name='function.mhash-count.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> R&amp;eacute;cup&amp;egrave;re l&amp;#039;identifiant maximal de hash. </p> </div> <a name='function.mhash-count.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne l&amp;#039;identifiant de hash maximal. Les hashs sont num&amp;eacute;rot&amp;eacute;s de 0 jusqu&amp;#039;&amp;agrave; cet identifiant. </p> </div> <a name='function.mhash-count.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Parcourir la liste des hash</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</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'La&amp;nbsp;taille&amp;nbsp;de&amp;nbsp;bloc&amp;nbsp;de&amp;nbsp;%s&amp;nbsp;est&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</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</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/fr/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'>Calcule un hash</span></p> </div> <a name='function.mhash.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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> [, <span class='methodparam'><span class='type'>string</span> <tt class='parameter'>$key</tt></span> ] )</div> <p class='para rdfs-comment'> <b>mhash()</b> applique la fonction de hash <i><tt class='parameter'>hash</tt></i> aux donn&amp;eacute;es <i><tt class='parameter'>data</tt></i> . </p> </div> <a name='function.mhash.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> L&amp;#039;identifiant du hash. Une parmi les constantes <i>MHASH_XXX</i>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> L&amp;#039;entr&amp;eacute;e utilisateur, sous la forme d&amp;#039;une <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Sp&amp;eacute;cifi&amp;eacute;, la fonction retournera le HMAC r&amp;eacute;sultant. HMAC est un hash index&amp;eacute; utilis&amp;eacute; pour l&amp;#039;identification de message, ou bien un simple rapport de message, suivant la cl&amp;eacute; sp&amp;eacute;cifi&amp;eacute;e. Certains algorithmes support&amp;eacute;s dans mhash ne sont pas compatibles avec le mode HMAC. </p> </dd> </dl> <p> </p> </div> <a name='function.mhash.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne le hash r&amp;eacute;sultant (appel&amp;eacute; aussi &amp;quot;digest&amp;quot;) ou HMAC, sous la forme d&amp;#039;une <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</a> ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </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/fr/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'>D&amp;eacute;chiffre les donn&amp;eacute;es</span></p> </div> <a name='function.mdecrypt-generic.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> D&amp;eacute;chiffre les donn&amp;eacute;es <i><tt class='parameter'>data</tt></i> . Notez que la longueur de la cha&amp;icirc;ne d&amp;eacute;chiffr&amp;eacute;e peut &amp;ecirc;tre plus longue que la cha&amp;icirc;ne originale, car elle peut avoir &amp;eacute;t&amp;eacute; compl&amp;eacute;t&amp;eacute;e par des caract&amp;egrave;res. </p> </div> <a name='function.mdecrypt-generic.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Un descripteur de chiffrement, retourn&amp;eacute; par la fonction <a href='http://www.php.net/manual/fr/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'> Les donn&amp;eacute;es chiffr&amp;eacute;es. </p> </dd> </dl> <p> </p> </div> <a name='function.mdecrypt-generic.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mdecrypt_generic()</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;Donn&amp;eacute;es&amp;nbsp;*/<br /></span><span style='color: #0000BB'>$key&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'Ceci&amp;nbsp;est&amp;nbsp;une&amp;nbsp;tr&amp;egrave;s&amp;nbsp;longue&amp;nbsp;cl&amp;eacute;&amp;nbsp;de&amp;nbsp;chiffrement,&amp;nbsp;et&amp;nbsp;m&amp;ecirc;me&amp;nbsp;trop&amp;nbsp;longue'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>$plain_text&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'Ceci&amp;nbsp;sont&amp;nbsp;des&amp;nbsp;donn&amp;eacute;es&amp;nbsp;importantes'</span><span style='color: #007700'>;<br /><br /></span><span style='color: #FF8000'>/*&amp;nbsp;Ouvre&amp;nbsp;le&amp;nbsp;module&amp;nbsp;et&amp;nbsp;cr&amp;eacute;e&amp;nbsp;un&amp;nbsp;VI&amp;nbsp;*/&amp;nbsp;<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'>'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 /></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 /></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 /></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 /></span><span style='color: #FF8000'>/*&amp;nbsp;Initialise&amp;nbsp;le&amp;nbsp;module&amp;nbsp;de&amp;nbsp;chiffrement&amp;nbsp;*/<br /></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;</span><span style='color: #FF8000'>/*&amp;nbsp;Chiffre&amp;nbsp;les&amp;nbsp;donn&amp;eacute;es&amp;nbsp;*/<br />&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;</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;R&amp;eacute;initialise&amp;nbsp;les&amp;nbsp;tampons&amp;nbsp;pour&amp;nbsp;le&amp;nbsp;d&amp;eacute;chiffrement&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 />&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;</span><span style='color: #FF8000'>/*&amp;nbsp;Nettoye&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 /><br />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;echo&amp;nbsp;</span><span style='color: #DD0000'>'ok\n'</span><span style='color: #007700'>;<br />}&amp;nbsp;else&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #DD0000'>'erreur\n'</span><span style='color: #007700'>;<br />}<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> </div><p> </p> <p class='para'> L&amp;#039;exemple ci-dessus montre comment v&amp;eacute;rifier que les donn&amp;eacute;es avant chiffrement sont bien les m&amp;ecirc;mes que celles apr&amp;egrave;s chiffrement/d&amp;eacute;chiffrement. Il est tr&amp;egrave;s important de r&amp;eacute;initialiser le buffer de chiffrement avec <a href='http://www.php.net/manual/fr/function.mcrypt-generic-init.php' class='function'>mcrypt_generic_init()</a> avant que nous ne d&amp;eacute;chiffriez les donn&amp;eacute;es. </p> <p class='para'> Le gestionnaire de d&amp;eacute;chiffrement doit toujours &amp;ecirc;tre initialis&amp;eacute; par la fonction <a href='http://www.php.net/manual/fr/function.mcrypt-generic-init.php' class='function'>mcrypt_generic_init()</a> avec une cl&amp;eacute; et un VI avant d&amp;#039;appeler cette fonction. Lorsque le chiffrement est fait, il faut que vous lib&amp;eacute;riez les donn&amp;eacute;es chiffr&amp;eacute;es en appelant <a href='http://www.php.net/manual/fr/function.mcrypt-generic-deinit.php' class='function'>mcrypt_generic_deinit()</a>. Voir <a href='http://www.php.net/manual/fr/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a> pour un exemple. </p> </div> <a name='function.mdecrypt-generic.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-generic.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic()</a> - Chiffre les donn&amp;eacute;es</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-generic-init.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_init()</a> - Initialise tous les buffers n&amp;eacute;cessaires</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-generic-deinit.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_deinit()</a> - Pr&amp;eacute;pare le module pour le d&amp;eacute;chargement</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/fr/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'>Chiffre/d&amp;eacute;chiffre des donn&amp;eacute;es en mode OFB</span></p> </div> <a name='function.mcrypt-ofb.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> La premi&amp;egrave;re syntaxe utilise libmcrypt 2.2.x, et la seconde libmcrypt 2.4.x. Le param&amp;egrave;tre <i><tt class='parameter'>mode</tt></i> doit &amp;ecirc;tre <b><tt class='constant'>MCRYPT_ENCRYPT</tt></b> ou <b><tt class='constant'>MCRYPT_DECRYPT</tt></b>. </p> <p class='para'> <b>mcrypt_ofb()</b> ne doit plus &amp;ecirc;tre utilis&amp;eacute;e. Vous pouvez la remplacer par <a href='http://www.php.net/manual/fr/function.mcrypt-generic.php' class='function'>mcrypt_generic()</a> et <a href='http://www.php.net/manual/fr/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</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_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/fr/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'>Teste un mode</span></p> </div> <a name='function.mcrypt-module-self-test.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Effectue un test sur l&amp;#039;algorithme sp&amp;eacute;cifi&amp;eacute;. </p> </div> <a name='function.mcrypt-module-self-test.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le param&amp;egrave;tre optionnel <i><tt class='parameter'>lib_dir</tt></i> contient le chemin jusqu&amp;#039;au module de l&amp;#039;algorithme sur le syst&amp;egrave;me. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-self-test.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne <b><tt class='constant'>TRUE</tt></b> si le test fonctionne, et <b><tt class='constant'>FALSE</tt></b> sinon. </p> </div> <a name='function.mcrypt-module-self-test.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_module_self_test()</b></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>L&amp;#039;exemple ci-dessus va afficher :</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/fr/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'>Ouvre le module de l&amp;#039;algorithme et du mode &amp;agrave; utiliser</span></p> </div> <a name='function.mcrypt-module-open.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>mcrypt_module_open()</b> ouvre le module de l&amp;#039;algorithme et du mode &amp;agrave; utiliser. Le nom de l&amp;#039;algorithme est sp&amp;eacute;cifi&amp;eacute; par le param&amp;egrave;tre <i><tt class='parameter'>algorithm</tt></i> (par exemple : <i>&amp;quot;twofish&amp;quot;</i>), ou bien une des constantes <b><tt class='constant'>MCRYPT_ciphername</tt></b>. La biblioth&amp;egrave;que est referm&amp;eacute;e en appelant <a href='http://www.php.net/manual/fr/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'>Liste de param&amp;egrave;tres</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'> L&amp;#039;algorithme &amp;agrave; utiliser. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>algorithm_directory</tt></i> </span> </dt><dd class='listitem'> <p class='para'> <i><tt class='parameter'>algorithm_directory</tt></i> et <i><tt class='parameter'>mode_directory</tt></i> servent &amp;agrave; rep&amp;eacute;rer les modules de chiffrement. Si vous fournissez un nom de dossier, il sera utilis&amp;eacute;. Si vous passez une cha&amp;icirc;ne vide (<i>&amp;quot;&amp;quot;</i>), la valeur utilis&amp;eacute; par <i><tt class='parameter'>mcrypt.algorithms_dir</tt></i> ou <i><tt class='parameter'>mcrypt.modes_dir</tt></i> sera celle indiqu&amp;eacute;e dans les directives de configuration. Lorsque ces param&amp;egrave;tres ne sont pas fournis les valeurs par d&amp;eacute;faut, compil&amp;eacute;es avec la biblioth&amp;egrave;que, sont utilis&amp;eacute;es (g&amp;eacute;n&amp;eacute;ralement <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'> Le mode &amp;agrave; utiliser. </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'>Valeurs de retour</h3> <p class='para'> Normalement, cette fonction retourne un descripteur de cryptage, ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.mcrypt-module-open.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_module_open()</b></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_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;</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 /></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'> La premi&amp;egrave;re ligne de l&amp;#039;exemple ci-dessus va essayer d&amp;#039;ouvrir le chiffrement <i>DES</i>, dans le dossier par d&amp;eacute;faut, et le mode <i>EBC</i> dans le dossier <var class='filename'>/usr/lib/mcrypt-modes</var>. Le second exemple utilise les cha&amp;icirc;nes comme nom pour le chiffrement et le mode. Cela ne fonctionne que si l&amp;#039;extension est compil&amp;eacute;e avec libmcrypt 2.4.x or 2.5.x. </p> <p class='para'> </p><div class='example'> <p><b>Exemple #2 Utilisation de <b>mcrypt_module_open()</b> pour chiffrer</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;Charge&amp;nbsp;un&amp;nbsp;chiffrement&amp;nbsp;*/<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'>'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 /></span><span style='color: #FF8000'>/*&amp;nbsp;Cr&amp;eacute;e&amp;nbsp;le&amp;nbsp;VI&amp;nbsp;et&amp;nbsp;d&amp;eacute;termine&amp;nbsp;la&amp;nbsp;taille&amp;nbsp;de&amp;nbsp;la&amp;nbsp;cl&amp;eacute;&amp;nbsp;*/<br /></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 /></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 /></span><span style='color: #FF8000'>/*&amp;nbsp;Cr&amp;eacute;e&amp;nbsp;la&amp;nbsp;cl&amp;eacute;&amp;nbsp;*/<br /></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 /></span><span style='color: #FF8000'>/*&amp;nbsp;Intialise&amp;nbsp;le&amp;nbsp;chiffrement&amp;nbsp;*/<br /></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 /></span><span style='color: #FF8000'>/*&amp;nbsp;Chiffre&amp;nbsp;les&amp;nbsp;donn&amp;eacute;es&amp;nbsp;*/<br /></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 /></span><span style='color: #FF8000'>/*&amp;nbsp;Lib&amp;egrave;re&amp;nbsp;le&amp;nbsp;gestionnaire&amp;nbsp;de&amp;nbsp;chiffrement&amp;nbsp;*/<br /></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 /></span><span style='color: #FF8000'>/*&amp;nbsp;Initialise&amp;nbsp;le&amp;nbsp;module&amp;nbsp;de&amp;nbsp;chiffrement&amp;nbsp;pour&amp;nbsp;le&amp;nbsp;d&amp;eacute;chiffrement&amp;nbsp;*/<br /></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 /></span><span style='color: #FF8000'>/*&amp;nbsp;D&amp;eacute;chiffre&amp;nbsp;les&amp;nbsp;donn&amp;eacute;es&amp;nbsp;*/<br /></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 /></span><span style='color: #FF8000'>/*&amp;nbsp;Lib&amp;egrave;re&amp;nbsp;le&amp;nbsp;gestionnaire&amp;nbsp;de&amp;nbsp;d&amp;eacute;chiffrement,&amp;nbsp;et&amp;nbsp;ferme&amp;nbsp;le&amp;nbsp;module&amp;nbsp;*/<br /></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 /></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 /></span><span style='color: #FF8000'>/*&amp;nbsp;Affiche&amp;nbsp;la&amp;nbsp;cha&amp;icirc;ne&amp;nbsp;*/<br /></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'>).</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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-module-close.php' class='function' rel='rdfs-seeAlso'>mcrypt_module_close()</a> - D&amp;eacute;charge le module de chiffrement</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-generic.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic()</a> - Chiffre les donn&amp;eacute;es</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mdecrypt-generic.php' class='function' rel='rdfs-seeAlso'>mdecrypt_generic()</a> - D&amp;eacute;chiffre les donn&amp;eacute;es</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-generic-init.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_init()</a> - Initialise tous les buffers n&amp;eacute;cessaires</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-generic-deinit.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_deinit()</a> - Pr&amp;eacute;pare le module pour le d&amp;eacute;chargement</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/fr/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'>Indique si un mode travaille par blocs</span></p> </div> <a name='function.mcrypt-module-is-block-mode.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> si ce mode fournit des blocs d&amp;#039;octets ou <b><tt class='constant'>FALSE</tt></b> s&amp;#039;il ne sort que des octets. (i.e. <b><tt class='constant'>TRUE</tt></b> pour <i>&amp;quot;cbc&amp;quot;</i> et <i>&amp;quot;ecb&amp;quot;</i>, et <b><tt class='constant'>FALSE</tt></b> pour <i>&amp;quot;cfb&amp;quot;</i> et <i>&amp;quot;stream&amp;quot;</i>). </p> </div> <a name='function.mcrypt-module-is-block-mode.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le mode &amp;agrave; v&amp;eacute;rifier. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le param&amp;egrave;tre optionnel <i><tt class='parameter'>lib_dir</tt></i> contient le chemin jusqu&amp;#039;au module de l&amp;#039;algorithme sur le syst&amp;egrave;me. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-is-block-mode.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> si ce mode fournit des blocs d&amp;#039;octets ou <b><tt class='constant'>FALSE</tt></b> s&amp;#039;il ne sort que des octets. (i.e. <b><tt class='constant'>TRUE</tt></b> pour <i>&amp;quot;cbc&amp;quot;</i> et <i>&amp;quot;ecb&amp;quot;</i>, et <b><tt class='constant'>FALSE</tt></b> pour <i>&amp;quot;cfb&amp;quot;</i> et <i>&amp;quot;stream&amp;quot;</i>). </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/fr/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'>Indique si un mode fonctionne par blocs</span></p> </div> <a name='function.mcrypt-module-is-block-algorithm-mode.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> si le mode doit &amp;ecirc;tre utilis&amp;eacute; avec un algorithme par bloc, sinon, elle retourne <b><tt class='constant'>FALSE</tt></b> (i.e. <b><tt class='constant'>FALSE</tt></b> pour un flux, et <b><tt class='constant'>TRUE</tt></b> pour cbc, cfb, ofb). </p> </div> <a name='function.mcrypt-module-is-block-algorithm-mode.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le mode &amp;agrave; v&amp;eacute;rifier. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le param&amp;egrave;tre optionnel <i><tt class='parameter'>lib_dir</tt></i> peut contenir le dossier o&amp;ugrave; les modules d&amp;#039;algorithme se trouvent sur le syst&amp;egrave;me. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-is-block-algorithm-mode.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> si le mode doit &amp;ecirc;tre utilis&amp;eacute; avec un algorithme par bloc, sinon, elle retourne <b><tt class='constant'>FALSE</tt></b> (i.e. <b><tt class='constant'>FALSE</tt></b> pour un flux, et <b><tt class='constant'>TRUE</tt></b> pour 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/fr/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'>Indique si un algorithme fonctionne par blocs</span></p> </div> <a name='function.mcrypt-module-is-block-algorithm.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>mcrypt_module_is_block_algorithm()</b> retourne <b><tt class='constant'>TRUE</tt></b> si <i><tt class='parameter'>algorithm</tt></i> est un algorithme par blocs, ou <b><tt class='constant'>FALSE</tt></b> si c&amp;#039;est un algorithme par flux. </p> </div> <a name='function.mcrypt-module-is-block-algorithm.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> L&amp;#039;algorithme &amp;agrave; v&amp;eacute;rifier. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le param&amp;egrave;tre optionnel <i><tt class='parameter'>lib_dir</tt></i> peut contenir le chemin o&amp;ugrave; se trouve les modules des algorithmes sur le disque syst&amp;egrave;me. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-is-block-algorithm.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne <b><tt class='constant'>TRUE</tt></b> si l&amp;#039;algorithme sp&amp;eacute;cifi&amp;eacute; est un algorithme par blocs ou <b><tt class='constant'>FALSE</tt></b> si c&amp;#039;est un algorithme par flux. </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/fr/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'>Retourne un tableau contenant les tailles de cl&amp;eacute;s support&amp;eacute;es par l&amp;#039;algorithme ouvert</span></p> </div> <a name='function.mcrypt-module-get-supported-key-sizes.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Retourne un tableau contenant les tailles de cl&amp;eacute;s support&amp;eacute;es par l&amp;#039;algorithme de chiffrement <i><tt class='parameter'>algorithm</tt></i> . S&amp;#039;il retourne un tableau vide, alors toutes les cl&amp;eacute;s entre 1 et <a href='http://www.php.net/manual/fr/function.mcrypt-module-get-algo-key-size.php' class='function'>mcrypt_module_get_algo_key_size()</a> sont support&amp;eacute;es par l&amp;#039;algorithme. </p> </div> <a name='function.mcrypt-module-get-supported-key-sizes.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> L&amp;#039;algorithme &amp;agrave; utiliser. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le param&amp;egrave;tre optionnel <i><tt class='parameter'>lib_dir</tt></i> peut contenir le chemin du dossier d&amp;#039;installation du module, sur le syst&amp;egrave;me. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-get-supported-key-sizes.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne un tableau contenant les tailles de cl&amp;eacute;s support&amp;eacute;es par l&amp;#039;algorithme de chiffrement <i><tt class='parameter'>algorithm</tt></i> . S&amp;#039;il retourne un tableau vide, alors toutes les cl&amp;eacute;s entre 1 et <a href='http://www.php.net/manual/fr/function.mcrypt-module-get-algo-key-size.php' class='function'>mcrypt_module_get_algo_key_size()</a> sont support&amp;eacute;es par l&amp;#039;algorithme. </p> </div> <a name='function.mcrypt-module-get-supported-key-sizes.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-supported-key-sizes.php' class='function' rel='rdfs-seeAlso'>mcrypt_enc_get_supported_key_sizes()</a> - Retourne un tableau contenant les tailles de cl&amp;eacute;s accept&amp;eacute;es par un algorithme</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/fr/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'>Retourne la taille maximale de cl&amp;eacute;</span></p> </div> <a name='function.mcrypt-module-get-algo-key-size.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Retourne la taille maximale de cl&amp;eacute;. </p> </div> <a name='function.mcrypt-module-get-algo-key-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le nom de l&amp;#039;algorithme. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le param&amp;egrave;tre optionnel <i><tt class='parameter'>lib_dir</tt></i> contient le chemin jusqu&amp;#039;au module de l&amp;#039;algorithme sur le syst&amp;egrave;me. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-get-algo-key-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne la taille maximale de la cl&amp;eacute; support&amp;eacute;e par l&amp;#039;algorithme <i><tt class='parameter'>algorithm</tt></i> . </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/fr/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'>Retourne la taille de blocs d&amp;#039;un algorithme</span></p> </div> <a name='function.mcrypt-module-get-algo-block-size.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Retourne la taille de blocs d&amp;#039;un algorithme. </p> </div> <a name='function.mcrypt-module-get-algo-block-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le nom de l&amp;#039;algorithme. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>lib_dir</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le param&amp;egrave;tre optionnel <i><tt class='parameter'>lib_dir</tt></i> contient le chemin jusqu&amp;#039;au module de l&amp;#039;algorithme sur le syst&amp;egrave;me. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-get-algo-block-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne la taille de blocs d&amp;#039;un algorithme, en octets. </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/fr/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'>D&amp;eacute;charge le module de chiffrement</span></p> </div> <a name='function.mcrypt-module-close.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> D&amp;eacute;charge le module <i><tt class='parameter'>td</tt></i> . </p> </div> <a name='function.mcrypt-module-close.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La ressource de chiffrement. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-module-close.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> en cas de succ&amp;egrave;s ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.mcrypt-module-close.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-module-open.php' class='function' rel='rdfs-seeAlso'>mcrypt_module_open()</a> - Ouvre le module de l'algorithme et du mode &amp;agrave; utiliser</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/fr/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'>Liste tous les modes de chiffrement support&amp;eacute;s</span></p> </div> <a name='function.mcrypt-list-modes.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Liste tous les modes de chiffrement de <i><tt class='parameter'>lib_dir</tt></i> . </p> </div> <a name='function.mcrypt-list-modes.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Sp&amp;eacute;cifie le dossier o&amp;ugrave; tous les modes sont situ&amp;eacute;s. Si omis, la valeur de la directive <i>mcrypt.modes_dir</i> dans le <var class='filename'>php.ini</var> est utilis&amp;eacute;e. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-list-modes.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne un tableau avec tous les modes support&amp;eacute;s. </p> </div> <a name='function.mcrypt-list-modes.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_list_modes()</b></b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$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 />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;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 />}<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p> L&amp;#039;exemple ci-dessus va afficher tous les modes support&amp;eacute;s dans le dossier par d&amp;eacute;faut. Si la directive mcrypt.modes_dir n&amp;#039;est pas d&amp;eacute;finie, le dossier par d&amp;eacute;faut de mcrypt est utilis&amp;eacute; (<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/fr/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'>Liste tous les algorithmes de chiffrement support&amp;eacute;s</span></p> </div> <a name='function.mcrypt-list-algorithms.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Liste tous les algorithmes de chiffrement de <i><tt class='parameter'>lib_dir</tt></i> . </p> </div> <a name='function.mcrypt-list-algorithms.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Sp&amp;eacute;cifie le dossier o&amp;ugrave; les algoritjmes sont situ&amp;eacute;s. Si omis, la valeur de la directive mcrypt.algorithms_dir du fichier <var class='filename'>php.ini</var> est utilis&amp;eacute;e. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-list-algorithms.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne un tableau avec les algorithmes support&amp;eacute;s. </p> </div> <a name='function.mcrypt-list-algorithms.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_list_algorithms()</b></b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$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 />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;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 />}<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p> L&amp;#039;exemple ci-dessus va afficher tous les algorithmes support&amp;eacute;s dans le dossier &amp;quot;<var class='filename'>/usr/local/lib/libmcrypt</var>&amp;quot;. </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/fr/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'>Retourne la taille de la cl&amp;eacute; d&amp;#039;un chiffrement</span></p> </div> <a name='function.mcrypt-get-key-size.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> La premi&amp;egrave;re syntaxe utilise libmcrypt 2.2.x, et la seconde libmcrypt 2.4.x ou plus r&amp;eacute;cent. </p> <p class='para'> <b>mcrypt_get_key_size()</b> sert &amp;agrave; lire la taille de cl&amp;eacute; du chiffrement <i><tt class='parameter'>cipher</tt></i> . </p> <p class='para'> Cet exemple illustre comment utiliser cette fonction avec les deux biblioth&amp;egrave;ques libmcrypt 2.4.x et 2.5.x. Il est plus facile de se servir de la fonction <a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-key-size.php' class='function'>mcrypt_enc_get_key_size()</a> comme elle utilise la ressource retourn&amp;eacute;e par <a href='http://www.php.net/manual/fr/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a>. </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_get_key_size()</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: #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 />Affichera&amp;nbsp;:<br />24</span> </code></div> </div> </div><p> </p> <p class='para'> Voir aussi <a href='http://www.php.net/manual/fr/function.mcrypt-get-block-size.php' class='function'>mcrypt_get_block_size()</a>, <a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-key-size.php' class='function'>mcrypt_enc_get_key_size()</a> et <a href='http://www.php.net/manual/fr/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/fr/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'>Retourne la taille du VI utilis&amp;eacute; par un couple chiffrement/mode</span></p> </div> <a name='function.mcrypt-get-iv-size.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>mcrypt_get_iv_size()</b> retourne la taille du vecteur d&amp;#039;initialisation (VI). Si l&amp;#039;algorithme n&amp;#039;utilise pas de vecteur d&amp;#039;initialisation, z&amp;eacute;ro est retourn&amp;eacute;. </p> <p class='para'> Il est plus utile d&amp;#039;utiliser la fonction <a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-iv-size.php' class='function'>mcrypt_enc_get_iv_size()</a>, car elle utilise la ressource retourn&amp;eacute;e par <a href='http://www.php.net/manual/fr/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'>Liste de param&amp;egrave;tres</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'> Une des constantes <i>MCRYPT_ciphername</i>, qui contient le nom de l&amp;#039;algorithme sous forme de <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</a>. </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> est une constante MCRYPT_MODE_modename qui peut valoir : <i>&amp;quot;ecb&amp;quot;</i>, <i>&amp;quot;cbc&amp;quot;</i>, <i>&amp;quot;cfb&amp;quot;</i>, <i>&amp;quot;ofb&amp;quot;</i>, <i>&amp;quot;nofb&amp;quot;</i> ou <i>&amp;quot;stream&amp;quot;</i>. IV est ignor&amp;eacute; en mode ECB sachant que ce mode ne le demande pas. Vous devez avoir le m&amp;ecirc;me IV (point de d&amp;eacute;part) lors du chiffrement et du d&amp;eacute;chiffrement, sinon, votre chiffrage &amp;eacute;chouera. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-get-iv-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne la taille du vecteur d&amp;#039;initialisation (IV), en octets. En cas d&amp;#039;erreur, la fonction retourne <b><tt class='constant'>FALSE</tt></b>. Si le vecteur d&amp;#039;initialisation est inutile, 0 est retourn&amp;eacute;. </p> </div> <a name='function.mcrypt-get-iv-size.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_get_iv_size()</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: #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 />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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-get-block-size.php' class='function' rel='rdfs-seeAlso'>mcrypt_get_block_size()</a> - Retourne la taille de blocs d'un chiffrement</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-iv-size.php' class='function' rel='rdfs-seeAlso'>mcrypt_enc_get_iv_size()</a> - Retourne la taille du VI d'un algorithme</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-create-iv.php' class='function' rel='rdfs-seeAlso'>mcrypt_create_iv()</a> - Cr&amp;eacute;e un vecteur d'initialisation &amp;agrave; partir d'une source al&amp;eacute;atoire</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/fr/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'>Lit le nom du chiffrement utilis&amp;eacute;</span></p> </div> <a name='function.mcrypt-get-cipher-name.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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> retourne le nom du chiffrement utilis&amp;eacute;. </p> <p class='para'> <b>mcrypt_get_cipher_name()</b> prend le num&amp;eacute;ro de chiffrement (avec libmcrypt 2.2.x) ou prend le nom du chiffrement (avec libmcrypt 2.4.x) comme param&amp;egrave;tre, et retourne le nom du chiffrement, ou <b><tt class='constant'>FALSE</tt></b>, s&amp;#039;il n&amp;#039;existe pas. </p> </div> <a name='function.mcrypt-get-cipher-name.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Une des constantes <i>MCRYPT_ciphername</i> ou le nom de l&amp;#039;algorithme sous la forme d&amp;#039;une <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-get-cipher-name.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne le nom du cipher ou <b><tt class='constant'>FALSE</tt></b> si le cipher n&amp;#039;existe pas. </p> </div> <a name='function.mcrypt-get-cipher-name.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_get_cipher_name()</b></b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$cipher&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #0000BB'>MCRYPT_TripleDES</span><span style='color: #007700'>;<br /><br />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>L&amp;#039;exemple ci-dessus va afficher :</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/fr/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'>Retourne la taille de blocs d&amp;#039;un chiffrement</span></p> </div> <a name='function.mcrypt-get-block-size.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Le premier prototype sert lorsque PHP est compil&amp;eacute; avec la biblioth&amp;egrave;que libmcrypt 2.2.x, le second lorsqu&amp;#039;il est compil&amp;eacute; avec libmcrypt 2.4.x ou 2.5.x. </p> <p class='para'> <b>mcrypt_get_block_size()</b> sert &amp;agrave; lire la taille de blocs du chiffrement <i><tt class='parameter'>cipher</tt></i> (en combinaison avec un mode de chiffrement). </p> <p class='para'> Il est recommand&amp;eacute; de se servir de la fonction <a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-block-size.php' class='function'>mcrypt_enc_get_block_size()</a>, car elle utilise la ressource retourn&amp;eacute;e par <a href='http://www.php.net/manual/fr/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'>Liste de param&amp;egrave;tres</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'> Une des constantes <i>MCRYPT_ciphername</i>, repr&amp;eacute;sentant le nom d&amp;#039;un algorithme sous forme de <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>module</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le module. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-get-block-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Lit la taille de bloc, sous forme d&amp;#039;un <a href='http://www.php.net/manual/fr/language.types.integer.php' class='link'>entier</a>. </p> </div> <a name='function.mcrypt-get-block-size.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_get_block_size()</b></b></p> <div class='example-contents para'><p> Cet exemple montre comment utiliser cette fonction lorsque PHP est compil&amp;eacute; avec libmcrypt 2.4.x et 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 /></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 /></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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-get-key-size.php' class='function' rel='rdfs-seeAlso'>mcrypt_get_key_size()</a> - Retourne la taille de la cl&amp;eacute; d'un chiffrement</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-block-size.php' class='function' rel='rdfs-seeAlso'>mcrypt_enc_get_block_size()</a> - Retourne la taille du bloc d'un algorithme</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-encrypt.php' class='function' rel='rdfs-seeAlso'>mcrypt_encrypt()</a> - Chiffre un texte</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/fr/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'>Initialise tous les buffers n&amp;eacute;cessaires</span></p> </div> <a name='function.mcrypt-generic-init.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Vous devez appeler <b>mcrypt_generic_init()</b> avant chaque appel &amp;agrave; <a href='http://www.php.net/manual/fr/function.mcrypt-generic.php' class='function'>mcrypt_generic()</a> ou <a href='http://www.php.net/manual/fr/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'>Liste de param&amp;egrave;tres</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'> La ressource de chiffrement. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> La taille maximale de la cl&amp;eacute; doit &amp;ecirc;tre celle retourn&amp;eacute;e par <a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-key-size.php' class='function'>mcrypt_enc_get_key_size()</a> et toutes les valeurs inf&amp;eacute;rieures seront aussi valides. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>iv</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le vecteur d&amp;#039;initialisation (VI) doit avoir la taille d&amp;#039;un bloc, mais vous devez lire sa taille en appelant <a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-iv-size.php' class='function'>mcrypt_enc_get_iv_size()</a>. IV est ignor&amp;eacute; en mode ECB. IV DOIT exister en modes <i>&amp;quot;CFB&amp;quot;</i>, <i>&amp;quot;CBC&amp;quot;</i>, <i>&amp;quot;STREAM&amp;quot;</i>, <i>&amp;quot;nOFB&amp;quot;</i> et <i>&amp;quot;OFB&amp;quot;</i>. Il doit &amp;ecirc;tre al&amp;eacute;atoire et unique (mais pas secret). Le m&amp;ecirc;me VI doit &amp;ecirc;tre utilis&amp;eacute; pour le chiffrement et le d&amp;eacute;chiffrement. Si vous ne voulez pas l&amp;#039;utiliser, remplissez-le de z&amp;eacute;ros, mais ce n&amp;#039;est pas recommand&amp;eacute;. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-generic-init.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne une valeur n&amp;eacute;gative en cas d&amp;#039;erreur : -3 si la taille de la cl&amp;eacute; est incorrecte, -4 quand il y a eu un probl&amp;egrave;me d&amp;#039;allocation de m&amp;eacute;moire et toute autre valeur en cas d&amp;#039;erreur inconnue. Si une erreur survient, une alerte est affich&amp;eacute;e. <b><tt class='constant'>FALSE</tt></b> est retourn&amp;eacute; si des param&amp;egrave;tres incorrects sont pass&amp;eacute;s &amp;agrave; la fonction. </p> </div> <a name='function.mcrypt-generic-init.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-module-open.php' class='function' rel='rdfs-seeAlso'>mcrypt_module_open()</a> - Ouvre le module de l'algorithme et du mode &amp;agrave; utiliser</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/fr/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'>Termine un chiffrement</span></p> </div> <a name='function.mcrypt-generic-end.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Avertissement</b> <p class='para'> Cette fonction est obsol&amp;egrave;te, utilisez <a href='http://www.php.net/manual/fr/function.mcrypt-generic-deinit.php' class='function'>mcrypt_generic_deinit()</a> &amp;agrave; la place. Elle peut causer des crashes lorsqu&amp;#039;elle est utilis&amp;eacute;e avec <a href='http://www.php.net/manual/fr/function.mcrypt-module-close.php' class='function'>mcrypt_module_close()</a> &amp;agrave; cause d&amp;#039;une multitude de tampons libres. </p> </div> </p> <p class='para'> <b>mcrypt_generic_end()</b> termine le chiffrement d&amp;eacute;sign&amp;eacute; par le pointeur <i><tt class='parameter'>td</tt></i> . En fait, elle supprime tous les buffers, et ferme les modules utilis&amp;eacute;s. Retourne <b><tt class='constant'>FALSE</tt></b> si une erreur survient, ou <b><tt class='constant'>TRUE</tt></b> en cas de succ&amp;egrave;s. </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/fr/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'>Pr&amp;eacute;pare le module pour le d&amp;eacute;chargement</span></p> </div> <a name='function.mcrypt-generic-deinit.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Pr&amp;eacute;pare le module de chiffrement <i><tt class='parameter'>td</tt></i> pour le d&amp;eacute;chargement. Tous les tampons sont vid&amp;eacute;s, mais le module n&amp;#039;est pas d&amp;eacute;charg&amp;eacute;. Vous devez appeler <a href='http://www.php.net/manual/fr/function.mcrypt-module-close.php' class='function'>mcrypt_module_close()</a> vous-m&amp;ecirc;me (mais PHP le fera pour vous a la fin du script). </p> </div> <a name='function.mcrypt-generic-deinit.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La ressource de chiffrement. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-generic-deinit.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> en cas de succ&amp;egrave;s ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.mcrypt-generic-deinit.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-module-open.php' class='function' rel='rdfs-seeAlso'>mcrypt_module_open()</a> - Ouvre le module de l'algorithme et du mode &amp;agrave; utiliser</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-generic-init.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_init()</a> - Initialise tous les buffers n&amp;eacute;cessaires</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/fr/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'>Chiffre les donn&amp;eacute;es</span></p> </div> <a name='function.mcrypt-generic.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>mcrypt_generic()</b> chiffre les donn&amp;eacute;es <i><tt class='parameter'>data</tt></i> . Les donn&amp;eacute;es sont compl&amp;eacute;t&amp;eacute;es par des &amp;quot;<i>\0</i>&amp;quot; pour obtenir une taille multiple de la taille d&amp;#039;un bloc. Elle retourne les donn&amp;eacute;es chiffr&amp;eacute;es. Notez que la longueur de la cha&amp;icirc;ne retourn&amp;eacute;e peut &amp;ecirc;tre plus longue que celle pass&amp;eacute;e en argument, &amp;agrave; cause du compl&amp;eacute;ment. </p> <p class='para'> Si vous voulez enregistrer les donn&amp;eacute;es chiffr&amp;eacute;es dans une base de donn&amp;eacute;es assurez-vous d&amp;#039;enregistrer la cha&amp;icirc;ne enti&amp;egrave;re retourn&amp;eacute;e par cette fonction, sinon la cha&amp;icirc;ne ne sera pas d&amp;eacute;crypt&amp;eacute;e correctement. Si votre cha&amp;icirc;ne d&amp;#039;origine comporte 10 caract&amp;egrave;res et que la taille d&amp;#039;un bloc est de 8 (utilisez <a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-block-size.php' class='function'>mcrypt_enc_get_block_size()</a> pour d&amp;eacute;terminer cette taille), vous aurez besoin d&amp;#039;au moins 16 caract&amp;egrave;res dans le champ de votre base de donn&amp;eacute;es. Notez que la cha&amp;icirc;ne retourn&amp;eacute;e par <a href='http://www.php.net/manual/fr/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</a> aura 16 caract&amp;egrave;res de long... utilisez <i>rtrim($str, &amp;quot;\0&amp;quot;)</i> pour supprimer le compl&amp;eacute;ment. </p> <p class='para'> Par exemple, si vous enregistrez les donn&amp;eacute;es dans une base de donn&amp;eacute;es MySQL, souvenez-vous que les champs de type VARCHAR suppriment automatiquement les espaces en trop durant l&amp;#039;insertion. Comme les donn&amp;eacute;es chiffr&amp;eacute;s peuvent se terminer avec un espace (ASCII 32), les donn&amp;eacute;es seront endommag&amp;eacute;es par cette suppression. Stockez les donn&amp;eacute;es dans un champ de type TINYBLOB/TINYTEXT (ou plus grand) pour que tout fonctionne normalement. </p> </div> <a name='function.mcrypt-generic.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La ressource de chiffrement. </p> <p class='para'> Le gestionnaire de chiffrement <i><tt class='parameter'>td</tt></i> doit &amp;ecirc;tre initialis&amp;eacute; avec la fonction <a href='http://www.php.net/manual/fr/function.mcrypt-generic-init.php' class='function'>mcrypt_generic_init()</a>, avec une cl&amp;eacute; et un VI, avant d&amp;#039;appeler cette fonction. Lorsque le chiffrement est r&amp;eacute;alis&amp;eacute;, vous devez lib&amp;eacute;rer les buffers en appelant la fonction <a href='http://www.php.net/manual/fr/function.mcrypt-generic-deinit.php' class='function'>mcrypt_generic_deinit()</a>. Voyez <a href='http://www.php.net/manual/fr/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a> pour un exemple. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Les donn&amp;eacute;es &amp;agrave; chiffrer. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-generic.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne les donn&amp;eacute;es chiffr&amp;eacute;es. </p> </div> <a name='function.mcrypt-generic.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.mdecrypt-generic.php' class='function' rel='rdfs-seeAlso'>mdecrypt_generic()</a> - D&amp;eacute;chiffre les donn&amp;eacute;es</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-generic-init.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_init()</a> - Initialise tous les buffers n&amp;eacute;cessaires</li> <li class='member'><a href='http://www.php.net/manual/fr/function.mcrypt-generic-deinit.php' class='function' rel='rdfs-seeAlso'>mcrypt_generic_deinit()</a> - Pr&amp;eacute;pare le module pour le d&amp;eacute;chargement</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/fr/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'>Teste un module ouvert</span></p> </div> <a name='function.mcrypt-enc-self-test.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Effectue un test du module ouvert et d&amp;eacute;sign&amp;eacute; par <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'>Liste de param&amp;egrave;tres</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'> La ressource de chiffrement. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-self-test.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Si le test est concluant, elle retourne <b><tt class='constant'>FALSE</tt></b>, sinon <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/fr/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'>Teste si le mode retourne les donn&amp;eacute;es par blocs</span></p> </div> <a name='function.mcrypt-enc-is-block-mode.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Teste si le mode retourne les donn&amp;eacute;es par blocs (e.g. <b><tt class='constant'>TRUE</tt></b> pour <i>&amp;quot;cbc&amp;quot;</i> et <i>&amp;quot;ecb&amp;quot;</i>, et <b><tt class='constant'>FALSE</tt></b> pour <i>&amp;quot;cfb&amp;quot;</i> et un flux). </p> </div> <a name='function.mcrypt-enc-is-block-mode.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La ressource de chiffrement. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-is-block-mode.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne <b><tt class='constant'>TRUE</tt></b> si le mode retourne des blocs d&amp;#039;octets, ou bien <b><tt class='constant'>FALSE</tt></b> s&amp;#039;il retourne des octets (par flux). </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/fr/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'>Teste le chiffrement par blocs d&amp;#039;un mode</span></p> </div> <a name='function.mcrypt-enc-is-block-algorithm-mode.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Teste le chiffrement par blocs d&amp;#039;un mode (e.g. <b><tt class='constant'>FALSE</tt></b> pour un flux, et <b><tt class='constant'>TRUE</tt></b> pour <i>&amp;quot;cbc&amp;quot;</i>, <i>&amp;quot;cfb&amp;quot;</i>, <i>&amp;quot;ofb&amp;quot;</i>). </p> </div> <a name='function.mcrypt-enc-is-block-algorithm-mode.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La ressource de chiffrement. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-is-block-algorithm-mode.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne <b><tt class='constant'>TRUE</tt></b> si ce mode utilise des algorithmes par blocs, et <b><tt class='constant'>FALSE</tt></b> sinon. </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/fr/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'>Teste le chiffrement par blocs d&amp;#039;un algorithme</span></p> </div> <a name='function.mcrypt-enc-is-block-algorithm.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Teste le chiffrement par blocs d&amp;#039;un algorithme. </p> </div> <a name='function.mcrypt-enc-is-block-algorithm.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La ressource de chiffrement. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-is-block-algorithm.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne <b><tt class='constant'>TRUE</tt></b> si l&amp;#039;algorithme utilis&amp;eacute; est un algorithme par blocs, et <b><tt class='constant'>FALSE</tt></b> si c&amp;#039;est un algorithme par flux. </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/fr/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'>Retourne un tableau contenant les tailles de cl&amp;eacute;s accept&amp;eacute;es par un algorithme</span></p> </div> <a name='function.mcrypt-enc-get-supported-key-sizes.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>mcrypt_enc_get_supported_key_sizes()</b> lit les tailles de cl&amp;eacute;s support&amp;eacute;es par l&amp;#039;algorithme courant de la ressource de chiffrement <i><tt class='parameter'>td</tt></i> . </p> </div> <a name='function.mcrypt-enc-get-supported-key-sizes.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La ressource de chiffrement. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-supported-key-sizes.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne un tableau contenant les tailles des cl&amp;eacute;s support&amp;eacute;es par l&amp;#039;algorithme d&amp;eacute;sign&amp;eacute; par <i><tt class='parameter'>td</tt></i> . S&amp;#039;il retourne un tableau vide, c&amp;#039;est que toutes les cl&amp;eacute;s entre 1 et <a href='http://www.php.net/manual/fr/function.mcrypt-enc-get-key-size.php' class='function'>mcrypt_enc_get_key_size()</a> sont accept&amp;eacute;es par l&amp;#039;algorithme. </p> </div> <a name='function.mcrypt-enc-get-supported-key-sizes.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_enc_get_supported_key_sizes()</b></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> Affichera : </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/fr/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'>Retourne le nom du mode</span></p> </div> <a name='function.mcrypt-enc-get-modes-name.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Retourne le nom du mode. </p> </div> <a name='function.mcrypt-enc-get-modes-name.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La ressource de chiffrement. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-modes-name.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne le nom, sous la forme d&amp;#039;une <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</a>. </p> </div> <a name='function.mcrypt-enc-get-modes-name.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_enc_get_modes_name()</b></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>L&amp;#039;exemple ci-dessus va afficher :</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/fr/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'>Retourne la taille maximale de la cl&amp;eacute; pour un mode</span></p> </div> <a name='function.mcrypt-enc-get-key-size.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Retourne la taille maximale de la cl&amp;eacute; pour un mode donn&amp;eacute;. </p> </div> <a name='function.mcrypt-enc-get-key-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-key-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne la taille maximale de la cl&amp;eacute; pour le mode donn&amp;eacute;. </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/fr/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'>Retourne la taille du VI d&amp;#039;un algorithme</span></p> </div> <a name='function.mcrypt-enc-get-iv-size.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Cette fonction retourne la taille du VI de l&amp;#039;algorithme d&amp;eacute;sign&amp;eacute; par <i><tt class='parameter'>td</tt></i> , en octets. Si la valeur retourn&amp;eacute;e est 0, c&amp;#039;est que l&amp;#039;algorithme ne demande pas de VI. Un VI est demand&amp;eacute; en mode <i>&amp;quot;cbc&amp;quot;</i>, <i>&amp;quot;cfb&amp;quot;</i> et <i>&amp;quot;ofb&amp;quot;</i>, et parfois en mode <i>&amp;quot;stream&amp;quot;</i>. </p> </div> <a name='function.mcrypt-enc-get-iv-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichiers. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-iv-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne la taille du IV, ou <i>0</i> si l&amp;#039;IV est ignor&amp;eacute; dans l&amp;#039;algorithme. </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/fr/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'>Retourne la taille du bloc d&amp;#039;un algorithme</span></p> </div> <a name='function.mcrypt-enc-get-block-size.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> R&amp;eacute;cup&amp;egrave;re la taille du bloc d&amp;#039;un algorithme. </p> </div> <a name='function.mcrypt-enc-get-block-size.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichiers. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-block-size.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne la taille du bloc de l&amp;#039;algorithme, en octets. </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/fr/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'>Retourne le nom de l&amp;#039;algorithme de chiffrement</span></p> </div> <a name='function.mcrypt-enc-get-algorithms-name.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>mcrypt_enc_get_algorithms_name()</b> retourne le nom de l&amp;#039;algorithme utilis&amp;eacute; par <i><tt class='parameter'>td</tt></i> . </p> </div> <a name='function.mcrypt-enc-get-algorithms-name.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La resource de chiffrement. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-enc-get-algorithms-name.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne le nom de l&amp;#039;algorithme courant, sous forme de <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</a> </p> </div> <a name='function.mcrypt-enc-get-algorithms-name.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_enc_get_algorithms_name()</b></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;&amp;nbsp;$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 />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;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 />&amp;nbsp;&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&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: #0000BB'>MCRYPT_MODE_CFB</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;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 />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>L&amp;#039;exemple ci-dessus va afficher :</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/fr/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'>Chiffre un texte</span></p> </div> <a name='function.mcrypt-encrypt.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>mcrypt_encrypt()</b> chiffre les donn&amp;eacute;es, et retourne les donn&amp;eacute;es chiffr&amp;eacute;es. </p> </div> <a name='function.mcrypt-encrypt.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Une des constantes <i>MCRYPT_ciphername</i>, contenant le nom de l&amp;#039;algorithme, sous forme de <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> La cl&amp;eacute; avec laquelle les donn&amp;eacute;es seront chiffr&amp;eacute;es. Si elle est plus petite que sa taille demand&amp;eacute;e, elle sera compl&amp;eacute;t&amp;eacute;e avec des &amp;#039;<i>\0</i>&amp;#039;. Il est mieux de ne pas utiliser des cl&amp;eacute;s ASCII. </p> <p class='para'> Il est recommand&amp;eacute; d&amp;#039;utiliser les fonctions mhash pour cr&amp;eacute;er des cl&amp;eacute;s &amp;agrave; partir d&amp;#039;une cha&amp;icirc;ne. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Les donn&amp;eacute;es qui seront chiffr&amp;eacute;es, avec l&amp;#039;algorithme et le mode indiqu&amp;eacute;. Si la taille des donn&amp;eacute;es n&amp;#039;est pas un multiple de la taille de bloc, les donn&amp;eacute;es seront compl&amp;eacute;t&amp;eacute;es par des caract&amp;egrave;res &amp;#039;<i>\0</i>&amp;#039;, autant que n&amp;eacute;cessaire. </p> <p class='para'> Le texte chiffr&amp;eacute; retourn&amp;eacute; peut &amp;ecirc;tre plus long que la taille des donn&amp;eacute;es pass&amp;eacute;es en argument via <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'> Une des constantes <i>MCRYPT_MODE_modename</i>, parmi les valeurs de <i>&amp;quot;ecb&amp;quot;</i>, <i>&amp;quot;cbc&amp;quot;</i>, <i>&amp;quot;cfb&amp;quot;</i>, <i>&amp;quot;ofb&amp;quot;</i>, <i>&amp;quot;nofb&amp;quot;</i> et <i>&amp;quot;stream&amp;quot;</i>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>iv</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Ce param&amp;egrave;tre est utilis&amp;eacute; pour l&amp;#039;initialisation en modes CBC, CFB et OFB, et dans certains algorithmes en mode STREAM. Si vous ne fournissez pas de vecteur d&amp;#039;initialisation et que l&amp;#039;algorithme en requiert un, la fonction va &amp;eacute;mettre une alerte, et utiliser un vecteur d&amp;#039;initialisation enti&amp;egrave;rement constitu&amp;eacute; de &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'>Valeurs de retour</h3> <p class='para'> Retourne les donn&amp;eacute;es chiffr&amp;eacute;es, sous forme de <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</a>. </p> </div> <a name='function.mcrypt-encrypt.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_encrypt()</b></b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br />$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 /></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 /></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 /></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 />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 /></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 />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>L&amp;#039;exemple ci-dessus va afficher :</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 42 64 </pre></div> </div> </div><p> </p> <p class='para'> Voir aussi <a href='http://www.php.net/manual/fr/function.mcrypt-module-open.php' class='function'>mcrypt_module_open()</a> pour une meilleure API et un exemple. </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/fr/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'>Obsol&amp;egrave;te : Chiffre/d&amp;eacute;chiffre des donn&amp;eacute;es en mode ECB</span></p> </div> <a name='function.mcrypt-ecb.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> La premi&amp;egrave;re syntaxe utilise libmcrypt 2.2.x, et la seconde libmcrypt 2.4.x. Le param&amp;egrave;tre <i><tt class='parameter'>mode</tt></i> doit &amp;ecirc;tre <b><tt class='constant'>MCRYPT_ENCRYPT</tt></b> ou <b><tt class='constant'>MCRYPT_DECRYPT</tt></b>. </p> <p class='para'> <b>mcrypt_ecb()</b> ne doit plus &amp;ecirc;tre utilis&amp;eacute;e. Vous pouvez la remplacer par <a href='http://www.php.net/manual/fr/function.mcrypt-generic.php' class='function'>mcrypt_generic()</a> et <a href='http://www.php.net/manual/fr/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</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_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/fr/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'>D&amp;eacute;chiffre un texte avec les param&amp;egrave;tres donn&amp;eacute;s</span></p> </div> <a name='function.mcrypt-decrypt.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> D&amp;eacute;chiffre les donn&amp;eacute;es <i><tt class='parameter'>data</tt></i> et retourne les donn&amp;eacute;es d&amp;eacute;chiffr&amp;eacute;es. </p> </div> <a name='function.mcrypt-decrypt.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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> est une constante MCRYPT_ciphername qui indique le nom de l&amp;#039;algorithme sous forme de cha&amp;icirc;ne. </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> est la cl&amp;eacute; utilis&amp;eacute;e pour chiffrer les donn&amp;eacute;es. Si elle est plus petite que n&amp;eacute;cessaire, elle sera compl&amp;eacute;t&amp;eacute;e avec des <i>&amp;quot;\0&amp;quot;</i>. </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> sont les donn&amp;eacute;es qui doivent &amp;ecirc;tre d&amp;eacute;chiffr&amp;eacute;es. Si la taille des donn&amp;eacute;es n&amp;#039;est pas de la forme n * taille_de_bloc, elles seront compl&amp;eacute;t&amp;eacute;es avec des &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> est une constante MCRYPT_MODE_modename qui peut valoir : <i>&amp;quot;ecb&amp;quot;</i>, <i>&amp;quot;cbc&amp;quot;</i>, <i>&amp;quot;cfb&amp;quot;</i>, <i>&amp;quot;ofb&amp;quot;</i>, <i>&amp;quot;nofb&amp;quot;</i> ou <i>&amp;quot;stream&amp;quot;</i>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>iv</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le <i><tt class='parameter'>iv</tt></i> (Vecteur d&amp;#039;Initialisation) est utilis&amp;eacute; pour les modes CBC, CFB, OFB, et dans certains algorithmes de mode STREAM. Si vous ne fournissez pas le VI, alors qu&amp;#039;il est n&amp;eacute;cessaire, la fonction affichera une alerte, et utilisera un VI compos&amp;eacute; de caract&amp;egrave;res <i>&amp;quot;\0&amp;quot;</i>. </p> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-decrypt.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne les donn&amp;eacute;es d&amp;eacute;chiffr&amp;eacute;es sous la forme d&amp;#039;une <a href='http://www.php.net/manual/fr/language.types.string.php' class='link'>cha&amp;icirc;ne de caract&amp;egrave;res</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_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/fr/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'>Cr&amp;eacute;e un vecteur d&amp;#039;initialisation &amp;agrave; partir d&amp;#039;une source al&amp;eacute;atoire</span></p> </div> <a name='function.mcrypt-create-iv.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>mcrypt_create_iv()</b> cr&amp;eacute;e un IV (vecteur d&amp;#039;initialisation) &amp;agrave; partir d&amp;#039;une source al&amp;eacute;atoire. </p> <p class='para'> Le vecteur d&amp;#039;initialisation est le seul moyen de fournir une initialisation de remplacement aux m&amp;eacute;thodes d&amp;#039;initialisation. Ce vecteur n&amp;#039;a pas besoin d&amp;#039;&amp;ecirc;tre particuli&amp;egrave;rement secret, m&amp;ecirc;me si c&amp;#039;est mieux. Vous pouvez l&amp;#039;envoyer avec vos documents chiffr&amp;eacute;s sans perdre en s&amp;eacute;curit&amp;eacute;. </p> </div> <a name='function.mcrypt-create-iv.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> D&amp;eacute;termine la taille du vecteur, et <i><tt class='parameter'>source</tt></i> (par d&amp;eacute;faut, une valeur al&amp;eacute;atoire), sp&amp;eacute;cifie la source du vecteur. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>source</tt></i> </span> </dt><dd class='listitem'> <p class='para'> La source peut &amp;ecirc;tre <b><tt class='constant'>MCRYPT_RAND</tt></b> (le g&amp;eacute;n&amp;eacute;rateur de nombre al&amp;eacute;atoire du syst&amp;egrave;me), <b><tt class='constant'>MCRYPT_DEV_RANDOM</tt></b> (lit les donn&amp;eacute;es depuis <var class='filename'>/dev/random</var>) et <b><tt class='constant'>MCRYPT_DEV_URANDOM</tt></b> (lit les donn&amp;eacute;es depuis <var class='filename'>/dev/urandom</var>). <b><tt class='constant'>MCRYPT_RAND</tt></b> est la seule source support&amp;eacute;e sur Windows car Windows n&amp;#039;a pas de fichier <var class='filename'>/dev/random</var>, ni <var class='filename'>/dev/urandom</var>. </p> <blockquote><p><b class='note'>Note</b>: Lors de l&amp;#039;utilisation de <b><tt class='constant'>MCRYPT_RAND</tt></b>, n&amp;#039;oubliez pas d&amp;#039;appeler <a href='http://www.php.net/manual/fr/function.srand.php' class='function'>srand()</a> avant <b>mcrypt_create_iv()</b> pour initialiser le g&amp;eacute;n&amp;eacute;rateur de nombre al&amp;eacute;atoires; il n&amp;#039;est pas automatiquement initialis&amp;eacute; comme <a href='http://www.php.net/manual/fr/function.rand.php' class='function'>rand()</a>. <br /> </p></blockquote> </dd> </dl> <p> </p> </div> <a name='function.mcrypt-create-iv.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne le vecteur d&amp;#039;initialisation, ou bien <b><tt class='constant'>FALSE</tt></b> en cas d&amp;#039;erreur. </p> </div> <a name='function.mcrypt-create-iv.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>mcrypt_create_iv()</b></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;&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;&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 />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</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'>Voir aussi</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/fr/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'>Chiffre/d&amp;eacute;chiffre des donn&amp;eacute;es en mode CFB</span></p> </div> <a name='function.mcrypt-cfb.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> La premi&amp;egrave;re syntaxe utilise libmcrypt 2.2.x, et la seconde libmcrypt 2.4.x. Le param&amp;egrave;tre <i><tt class='parameter'>mode</tt></i> doit &amp;ecirc;tre <b><tt class='constant'>MCRYPT_ENCRYPT</tt></b> ou <b><tt class='constant'>MCRYPT_DECRYPT</tt></b>. </p> <p class='para'> <b>mcrypt_cfb()</b> ne doit plus &amp;ecirc;tre utilis&amp;eacute;e. Vous pouvez la remplacer par <a href='http://www.php.net/manual/fr/function.mcrypt-generic.php' class='function'>mcrypt_generic()</a> et <a href='http://www.php.net/manual/fr/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</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_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/fr/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'>Chiffre/d&amp;eacute;chiffre des donn&amp;eacute;es en mode CBC</span></p> </div> <a name='function.mcrypt-cbc.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> La premi&amp;egrave;re syntaxe utilise libmcrypt 2.2.x, et la seconde libmcrypt 2.4.x. Le param&amp;egrave;tre <i><tt class='parameter'>mode</tt></i> doit &amp;ecirc;tre <b><tt class='constant'>MCRYPT_ENCRYPT</tt></b> ou <b><tt class='constant'>MCRYPT_DECRYPT</tt></b>. </p> <p class='para'> <b>mcrypt_cbc()</b> ne doit plus &amp;ecirc;tre utilis&amp;eacute;e. Vous pouvez la remplacer par <a href='http://www.php.net/manual/fr/function.mcrypt-generic.php' class='function'>mcrypt_generic()</a> et <a href='http://www.php.net/manual/fr/function.mdecrypt-generic.php' class='function'>mdecrypt_generic()</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="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/fr/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'>Ajoute des donn&amp;eacute;es dans un contexte de hachage actif d&amp;#039;un flux ouvert</span></p> </div> <a name='function.hash-update-stream.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Liste de param&amp;egrave;tres</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'> Contexte de hachage retourn&amp;eacute; par <a href='http://www.php.net/manual/fr/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'> Identifiant de fichier ouvert comme retourn&amp;eacute; par n&amp;#039;importe quelle fonction de cr&amp;eacute;ation de flux. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Taille maximale de caract&amp;egrave;res &amp;agrave; copier de <i><tt class='parameter'>handle</tt></i> dans le contexte de hachage. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-update-stream.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Nombre actuel d&amp;#039;octets ajout&amp;eacute;s au contexte de hachage de <i><tt class='parameter'>handle</tt></i> . </p> </div> <a name='function.hash-update-stream.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>hash_update_stream()</b></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'>'Le&amp;nbsp;rapide&amp;nbsp;goupil&amp;nbsp;brun&amp;nbsp;sauta&amp;nbsp;par&amp;nbsp;dessus&amp;nbsp;le&amp;nbsp;chien&amp;nbsp;paresseux.'</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>L&amp;#039;exemple ci-dessus va afficher :</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 2dfe052a8caca3db869ede6ae544cd5d </pre></div> </div> </div><p> </p> </div> <a name='function.hash-update-stream.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialise un contexte de hachage incr&amp;eacute;mental</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-update.php' class='function' rel='rdfs-seeAlso'>hash_update()</a> - Ajoute des donn&amp;eacute;es dans le contexte de hachage actif</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-final.php' class='function' rel='rdfs-seeAlso'>hash_final()</a> - Finalise un hachage incr&amp;eacute;mental et retourne le r&amp;eacute;sultat de l'empreinte num&amp;eacute;rique</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash.php' class='function' rel='rdfs-seeAlso'>hash()</a> - G&amp;eacute;n&amp;egrave;re une valeur de hachage (empreinte num&amp;eacute;rique)</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-file.php' class='function' rel='rdfs-seeAlso'>hash_file()</a> - G&amp;eacute;n&amp;egrave;re une valeur de hachage en utilisant le contenu d'un fichier donn&amp;eacute;</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/fr/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'>Ajoute des donn&amp;eacute;es dans un contexte de hachage actif provenant d&amp;#039;un fichier</span></p> </div> <a name='function.hash-update-file.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Liste de param&amp;egrave;tres</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'> Contexte de hachage retourn&amp;eacute; par <a href='http://www.php.net/manual/fr/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 indiquant l&amp;#039;emplacement du fichier qui sera hach&amp;eacute;; Supporte les enveloppes <a href='http://www.php.net/manual/fr/function.fopen.php' class='function'>fopen()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>context</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Contexte de flux retourn&amp;eacute; par <a href='http://www.php.net/manual/fr/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'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> en cas de succ&amp;egrave;s ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.hash-update-file.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialise un contexte de hachage incr&amp;eacute;mental</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-update.php' class='function' rel='rdfs-seeAlso'>hash_update()</a> - Ajoute des donn&amp;eacute;es dans le contexte de hachage actif</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-update-stream.php' class='function' rel='rdfs-seeAlso'>hash_update_stream()</a> - Ajoute des donn&amp;eacute;es dans un contexte de hachage actif d'un flux ouvert</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-final.php' class='function' rel='rdfs-seeAlso'>hash_final()</a> - Finalise un hachage incr&amp;eacute;mental et retourne le r&amp;eacute;sultat de l'empreinte num&amp;eacute;rique</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash.php' class='function' rel='rdfs-seeAlso'>hash()</a> - G&amp;eacute;n&amp;egrave;re une valeur de hachage (empreinte num&amp;eacute;rique)</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-file.php' class='function' rel='rdfs-seeAlso'>hash_file()</a> - G&amp;eacute;n&amp;egrave;re une valeur de hachage en utilisant le contenu d'un fichier donn&amp;eacute;</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/fr/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'>Ajoute des donn&amp;eacute;es dans le contexte de hachage actif</span></p> </div> <a name='function.hash-update.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Liste de param&amp;egrave;tres</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'> Contexte de hachage retourn&amp;eacute; par <a href='http://www.php.net/manual/fr/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 qui sera inclut dans l&amp;#039;empreinte de hachage. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-update.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne <b><tt class='constant'>TRUE</tt></b>. </p> </div> <a name='function.hash-update.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialise un contexte de hachage incr&amp;eacute;mental</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-update-file.php' class='function' rel='rdfs-seeAlso'>hash_update_file()</a> - Ajoute des donn&amp;eacute;es dans un contexte de hachage actif provenant d'un fichier</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-update-stream.php' class='function' rel='rdfs-seeAlso'>hash_update_stream()</a> - Ajoute des donn&amp;eacute;es dans un contexte de hachage actif d'un flux ouvert</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-final.php' class='function' rel='rdfs-seeAlso'>hash_final()</a> - Finalise un hachage incr&amp;eacute;mental et retourne le r&amp;eacute;sultat de l'empreinte num&amp;eacute;rique</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/fr/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'>Initialise un contexte de hachage incr&amp;eacute;mental</span></p> </div> <a name='function.hash-init.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Liste de param&amp;egrave;tres</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'> Nom de l&amp;#039;algorithme de hachage s&amp;eacute;lectionn&amp;eacute; (c&amp;#039;est-&amp;agrave;-dire &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'> Configurations optionnelles pour la g&amp;eacute;n&amp;eacute;ration du hachage, supporte actuellement seulement une option : <b><tt class='constant'>HASH_HMAC</tt></b>. Lorsque cette option est sp&amp;eacute;cifi&amp;eacute;e, le param&amp;egrave;tre <i><tt class='parameter'>key</tt></i> <em class='emphasis'>doit</em> &amp;ecirc;tre sp&amp;eacute;cifi&amp;eacute;. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Lorsque <b><tt class='constant'>HASH_HMAC</tt></b> est sp&amp;eacute;cifi&amp;eacute;e pour <i><tt class='parameter'>options</tt></i> , une cl&amp;eacute; secr&amp;egrave;te partag&amp;eacute;e qui sera utilis&amp;eacute;e avec la m&amp;eacute;thode de hachage HMAC doit &amp;ecirc;tre fournie dans ce param&amp;egrave;tre. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-init.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne une ressource de Contexte de Hachage pour utilisation avec <a href='http://www.php.net/manual/fr/function.hash-update.php' class='function'>hash_update()</a>, <a href='http://www.php.net/manual/fr/function.hash-update-stream.php' class='function'>hash_update_stream()</a>, <a href='http://www.php.net/manual/fr/function.hash-update-file.php' class='function'>hash_update_file()</a> et <a href='http://www.php.net/manual/fr/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'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple de hashage incr&amp;eacute;mental</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'>'Le&amp;nbsp;rapide&amp;nbsp;goupil&amp;nbsp;brun&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'>'sauta&amp;nbsp;par&amp;nbsp;dessus&amp;nbsp;le&amp;nbsp;chien&amp;nbsp;paresseux.'</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>L&amp;#039;exemple ci-dessus va afficher :</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 2dfe052a8caca3db869ede6ae544cd5d </pre></div> </div> </div><p> </p> </div> <a name='function.hash-init.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.hash.php' class='function' rel='rdfs-seeAlso'>hash()</a> - G&amp;eacute;n&amp;egrave;re une valeur de hachage (empreinte num&amp;eacute;rique)</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-file.php' class='function' rel='rdfs-seeAlso'>hash_file()</a> - G&amp;eacute;n&amp;egrave;re une valeur de hachage en utilisant le contenu d'un fichier donn&amp;eacute;</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-hmac.php' class='function' rel='rdfs-seeAlso'>hash_hmac()</a> - G&amp;eacute;n&amp;egrave;re une valeur de cl&amp;eacute; de hachage en utilisant la m&amp;eacute;thode HMAC</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-hmac-file.php' class='function' rel='rdfs-seeAlso'>hash_hmac_file()</a> - G&amp;eacute;n&amp;egrave;re une valeur de cl&amp;eacute; de hachage en utilisant la m&amp;eacute;thode HMAC et le contenu d'un fichier donn&amp;eacute;</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/fr/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'>G&amp;eacute;n&amp;egrave;re une valeur de cl&amp;eacute; de hachage en utilisant la m&amp;eacute;thode HMAC et le contenu d&amp;#039;un fichier donn&amp;eacute;</span></p> </div> <a name='function.hash-hmac-file.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Liste de param&amp;egrave;tres</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'> Nom de l&amp;#039;algorithme de hachage s&amp;eacute;lectionn&amp;eacute; (c&amp;#039;est-&amp;agrave;-dire <i>&amp;quot;md5&amp;quot;</i>, <i>&amp;quot;sha256&amp;quot;</i>, <i>&amp;quot;haval160,4&amp;quot;</i>, 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 indiquant l&amp;#039;emplacement du fichier qui sera hach&amp;eacute;; Supporte les enveloppes <a href='http://www.php.net/manual/fr/function.fopen.php' class='function'>fopen()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Cl&amp;eacute; secr&amp;egrave;te partag&amp;eacute;e utilis&amp;eacute;e pour g&amp;eacute;n&amp;eacute;rer la variance HMAC de l&amp;#039;empreinte num&amp;eacute;rique. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>raw_output</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Lorsqu&amp;#039;il vaut <b><tt class='constant'>TRUE</tt></b>, la sortie sera des donn&amp;eacute;es brutes binaires. Lorsqu&amp;#039;il vaut <b><tt class='constant'>FALSE</tt></b>, la sortie sera des chiffres hexad&amp;eacute;cimaux en minuscule. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-hmac-file.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne une cha&amp;icirc;ne de caract&amp;egrave;res contenant l&amp;#039;empreinte num&amp;eacute;rique calcul&amp;eacute;e en chiffre hexad&amp;eacute;cimal minuscule &amp;agrave; moins que <i><tt class='parameter'>raw_output</tt></i> soit fix&amp;eacute; &amp;agrave; <b><tt class='constant'>TRUE</tt></b>. Dans ce cas, la repr&amp;eacute;sentation brute binaire de l&amp;#039;empreinte num&amp;eacute;rique est retourn&amp;eacute;e. </p> </div> <a name='function.hash-hmac-file.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>hash_hmac_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;Cr&amp;eacute;e&amp;nbsp;un&amp;nbsp;fichier&amp;nbsp;pour&amp;nbsp;calculer&amp;nbsp;son&amp;nbsp;empreinte&amp;nbsp;num&amp;eacute;rique&amp;nbsp;*/<br /></span><span style='color: #0000BB'>file_put_contents</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'exemple.txt'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'Le&amp;nbsp;rapide&amp;nbsp;goupil&amp;nbsp;brun&amp;nbsp;sauta&amp;nbsp;par&amp;nbsp;dessus&amp;nbsp;le&amp;nbsp;chien&amp;nbsp;paresseux.'</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'>'exemple.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>L&amp;#039;exemple ci-dessus va afficher :</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 0d68e079ae8a5d364df207637e4f6860 </pre></div> </div> </div><p> </p> </div> <a name='function.hash-hmac-file.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-hmac.php' class='function' rel='rdfs-seeAlso'>hash_hmac()</a> - G&amp;eacute;n&amp;egrave;re une valeur de cl&amp;eacute; de hachage en utilisant la m&amp;eacute;thode HMAC</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-file.php' class='function' rel='rdfs-seeAlso'>hash_file()</a> - G&amp;eacute;n&amp;egrave;re une valeur de hachage en utilisant le contenu d'un fichier donn&amp;eacute;</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/fr/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'>G&amp;eacute;n&amp;egrave;re une valeur de cl&amp;eacute; de hachage en utilisant la m&amp;eacute;thode HMAC</span></p> </div> <a name='function.hash-hmac.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Liste de param&amp;egrave;tres</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'> Nom de l&amp;#039;algorithme de hachage s&amp;eacute;lectionn&amp;eacute; (c&amp;#039;est-&amp;agrave;-dire &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'> Le message qui sera hach&amp;eacute;. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>key</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Cl&amp;eacute; secr&amp;egrave;te partag&amp;eacute;e utilis&amp;eacute;e pour g&amp;eacute;n&amp;eacute;rer la variance HMAC de l&amp;#039;empreinte num&amp;eacute;rique. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>raw_output</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Lorsqu&amp;#039;il vaut <b><tt class='constant'>TRUE</tt></b>, la sortie sera des donn&amp;eacute;es brutes binaires. Lorsqu&amp;#039;il vaut <b><tt class='constant'>FALSE</tt></b>, la sortie sera des chiffres hexad&amp;eacute;cimaux en minuscule. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-hmac.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne une cha&amp;icirc;ne de caract&amp;egrave;res contenant l&amp;#039;empreinte num&amp;eacute;rique calcul&amp;eacute;e en chiffre hexad&amp;eacute;cimal minuscule &amp;agrave; moins que <i><tt class='parameter'>raw_output</tt></i> soit fix&amp;eacute; &amp;agrave; <b><tt class='constant'>TRUE</tt></b>. Dans ce cas, la repr&amp;eacute;sentation brute binaire de l&amp;#039;empreinte num&amp;eacute;rique est retourn&amp;eacute;e. </p> </div> <a name='function.hash-hmac.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>hash_hmac()</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: #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'>'Le&amp;nbsp;rapide&amp;nbsp;goupil&amp;nbsp;brun&amp;nbsp;sauta&amp;nbsp;par&amp;nbsp;dessus&amp;nbsp;le&amp;nbsp;chien&amp;nbsp;paresseux.'</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>L&amp;#039;exemple ci-dessus va afficher :</p></div> <div class='example-contents screen'> <div class='cdata'><pre> a6f41314c7a3482836268cf504b066e08216e40f </pre></div> </div> </div><p> </p> </div> <a name='function.hash-hmac.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.hash.php' class='function' rel='rdfs-seeAlso'>hash()</a> - G&amp;eacute;n&amp;egrave;re une valeur de hachage (empreinte num&amp;eacute;rique)</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialise un contexte de hachage incr&amp;eacute;mental</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-hmac-file.php' class='function' rel='rdfs-seeAlso'>hash_hmac_file()</a> - G&amp;eacute;n&amp;egrave;re une valeur de cl&amp;eacute; de hachage en utilisant la m&amp;eacute;thode HMAC et le contenu d'un fichier donn&amp;eacute;</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/fr/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'>Finalise un hachage incr&amp;eacute;mental et retourne le r&amp;eacute;sultat de l&amp;#039;empreinte num&amp;eacute;rique</span></p> </div> <a name='function.hash-final.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Liste de param&amp;egrave;tres</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'> Contexte de hachage retourn&amp;eacute; par <a href='http://www.php.net/manual/fr/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'> Lorsqu&amp;#039;il vaut <b><tt class='constant'>TRUE</tt></b>, la sortie sera des donn&amp;eacute;es brutes binaires. Lorsqu&amp;#039;il vaut <b><tt class='constant'>FALSE</tt></b>, la sortie sera des chiffres hexad&amp;eacute;cimaux en minuscule. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-final.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne une cha&amp;icirc;ne de caract&amp;egrave;res contenant l&amp;#039;empreinte num&amp;eacute;rique calcul&amp;eacute;e en chiffre hexad&amp;eacute;cimal minuscule &amp;agrave; moins que <i><tt class='parameter'>raw_output</tt></i> soit fix&amp;eacute; &amp;agrave; <b><tt class='constant'>TRUE</tt></b>. Dans ce cas, la repr&amp;eacute;sentation brute binaire de l&amp;#039;empreinte num&amp;eacute;rique est retourn&amp;eacute;e. </p> </div> <a name='function.hash-final.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>hash_final()</b></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'>'Le&amp;nbsp;rapide&amp;nbsp;goupil&amp;nbsp;brun&amp;nbsp;sauta&amp;nbsp;par&amp;nbsp;dessus&amp;nbsp;le&amp;nbsp;chien&amp;nbsp;paresseux.'</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>L&amp;#039;exemple ci-dessus va afficher :</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 7d36f32a7c271e74a44d759b89d19bbaf1b53904 </pre></div> </div> </div><p> </p> </div> <a name='function.hash-final.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialise un contexte de hachage incr&amp;eacute;mental</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-update.php' class='function' rel='rdfs-seeAlso'>hash_update()</a> - Ajoute des donn&amp;eacute;es dans le contexte de hachage actif</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-update-stream.php' class='function' rel='rdfs-seeAlso'>hash_update_stream()</a> - Ajoute des donn&amp;eacute;es dans un contexte de hachage actif d'un flux ouvert</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-update-file.php' class='function' rel='rdfs-seeAlso'>hash_update_file()</a> - Ajoute des donn&amp;eacute;es dans un contexte de hachage actif provenant d'un fichier</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/fr/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'>G&amp;eacute;n&amp;egrave;re une valeur de hachage en utilisant le contenu d&amp;#039;un fichier donn&amp;eacute;</span></p> </div> <a name='function.hash-file.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Liste de param&amp;egrave;tres</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'> Nom de l&amp;#039;algorithme de hachage s&amp;eacute;lectionn&amp;eacute; (c&amp;#039;est-&amp;agrave;-dire &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 indiquant l&amp;#039;emplacement du fichier qui sera hach&amp;eacute;; Supporte les enveloppes <a href='http://www.php.net/manual/fr/function.fopen.php' class='function'>fopen()</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'> Lorsqu&amp;#039;il vaut <b><tt class='constant'>TRUE</tt></b>, la sortie sera des donn&amp;eacute;es brutes binaires. Lorsqu&amp;#039;il vaut <b><tt class='constant'>FALSE</tt></b>, la sortie sera des chiffres hexad&amp;eacute;cimaux en minuscule. </p> </dd> </dl> <p> </p> </div> <a name='function.hash-file.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne une cha&amp;icirc;ne de caract&amp;egrave;res contenant l&amp;#039;empreinte num&amp;eacute;rique calcul&amp;eacute;e en chiffre hexad&amp;eacute;cimal minuscule &amp;agrave; moins que <i><tt class='parameter'>raw_output</tt></i> soit fix&amp;eacute; &amp;agrave; <b><tt class='constant'>TRUE</tt></b>. Dans ce cas, la repr&amp;eacute;sentation brute binaire de l&amp;#039;empreinte num&amp;eacute;rique est retourn&amp;eacute;e. </p> </div> <a name='function.hash-file.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <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;Cr&amp;eacute;e&amp;nbsp;un&amp;nbsp;fichier&amp;nbsp;pour&amp;nbsp;calculer&amp;nbsp;son&amp;nbsp;empreinte&amp;nbsp;num&amp;eacute;rique&amp;nbsp;*/<br /></span><span style='color: #0000BB'>file_put_contents</span><span style='color: #007700'>(</span><span style='color: #DD0000'>'exemple.txt'</span><span style='color: #007700'>,&amp;nbsp;</span><span style='color: #DD0000'>'Le&amp;nbsp;rapide&amp;nbsp;goupil&amp;nbsp;brun&amp;nbsp;sauta&amp;nbsp;par&amp;nbsp;dessus&amp;nbsp;le&amp;nbsp;chien&amp;nbsp;paresseux.'</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'>'exemple.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>L&amp;#039;exemple ci-dessus va afficher :</p></div> <div class='example-contents screen'> <div class='cdata'><pre> 2dfe052a8caca3db869ede6ae544cd5d </pre></div> </div> </div><p> </p> </div> <a name='function.hash-file.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.hash.php' class='function' rel='rdfs-seeAlso'>hash()</a> - G&amp;eacute;n&amp;egrave;re une valeur de hachage (empreinte num&amp;eacute;rique)</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-hmac-file.php' class='function' rel='rdfs-seeAlso'>hash_hmac_file()</a> - G&amp;eacute;n&amp;egrave;re une valeur de cl&amp;eacute; de hachage en utilisant la m&amp;eacute;thode HMAC et le contenu d'un fichier donn&amp;eacute;</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-update-file.php' class='function' rel='rdfs-seeAlso'>hash_update_file()</a> - Ajoute des donn&amp;eacute;es dans un contexte de hachage actif provenant d'un fichier</li> <li class='member'><a href='http://www.php.net/manual/fr/function.md5-file.php' class='function' rel='rdfs-seeAlso'>md5_file()</a> - Calcule le md5 d'un fichier</li> <li class='member'><a href='http://www.php.net/manual/fr/function.sha1-file.php' class='function' rel='rdfs-seeAlso'>sha1_file()</a> - Calcule le sha1 d'un fichier</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/fr/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'>Retourne une liste des algorithmes de hachage enregistr&amp;eacute;s</span></p> </div> <a name='function.hash-algos.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Valeurs de retour</h3> <p class='para'> Retourne un tableau index&amp;eacute; num&amp;eacute;riquement contenant la liste des algorithmes de hachage support&amp;eacute;s. </p> </div> <a name='function.hash-algos.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>hash_algos()</b></b></p> <div class='example-contents para'><p> Dans PHP 5.1.2, <b>hash_algos()</b> retournera la liste d&amp;#039;algorithmes suivante : </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>L&amp;#039;exemple ci-dessus va afficher :</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/fr/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'>G&amp;eacute;n&amp;egrave;re une valeur de hachage (empreinte num&amp;eacute;rique)</span></p> </div> <a name='function.hash.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'>Liste de param&amp;egrave;tres</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'> Nom de l&amp;#039;algorithme de hachage s&amp;eacute;lectionn&amp;eacute; (c&amp;#039;est-&amp;agrave;-dire &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 &amp;agrave; &amp;ecirc;tre hach&amp;eacute;. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>raw_output</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Lorsqu&amp;#039;il vaut <b><tt class='constant'>TRUE</tt></b>, la sortie sera des donn&amp;eacute;es brutes binaires. Lorsqu&amp;#039;il vaut <b><tt class='constant'>FALSE</tt></b>, la sortie sera des chiffres hexad&amp;eacute;cimaux en minuscule. </p> </dd> </dl> <p> </p> </div> <a name='function.hash.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne une cha&amp;icirc;ne de caract&amp;egrave;res contenant l&amp;#039;empreinte num&amp;eacute;rique calcul&amp;eacute;e en chiffre hexad&amp;eacute;cimal minuscule &amp;agrave; moins que <i><tt class='parameter'>raw_output</tt></i> soit fix&amp;eacute; &amp;agrave; <b><tt class='constant'>TRUE</tt></b>. Dans ce cas, la repr&amp;eacute;sentation brute binaire de l&amp;#039;empreinte num&amp;eacute;rique est retourn&amp;eacute;e. </p> </div> <a name='function.hash.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>hash()</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: #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'>'Le&amp;nbsp;rapide&amp;nbsp;goupil&amp;nbsp;brun&amp;nbsp;sauta&amp;nbsp;par&amp;nbsp;dessus&amp;nbsp;le&amp;nbsp;chien&amp;nbsp;paresseux.'</span><span style='color: #007700'>);<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>L&amp;#039;exemple ci-dessus va afficher :</p></div> <div class='example-contents screen'> <div class='cdata'><pre> cdb8426cb020896cea1d040e62a0f8cf9f5b4226 </pre></div> </div> </div><p> </p> </div> <a name='function.hash.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-file.php' class='function' rel='rdfs-seeAlso'>hash_file()</a> - G&amp;eacute;n&amp;egrave;re une valeur de hachage en utilisant le contenu d'un fichier donn&amp;eacute;</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-hmac.php' class='function' rel='rdfs-seeAlso'>hash_hmac()</a> - G&amp;eacute;n&amp;egrave;re une valeur de cl&amp;eacute; de hachage en utilisant la m&amp;eacute;thode HMAC</li> <li class='member'><a href='http://www.php.net/manual/fr/function.hash-init.php' class='function' rel='rdfs-seeAlso'>hash_init()</a> - Initialise un contexte de hachage incr&amp;eacute;mental</li> <li class='member'><a href='http://www.php.net/manual/fr/function.md5.php' class='function' rel='rdfs-seeAlso'>md5()</a> - Calcule le md5 d'une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.sha1.php' class='function' rel='rdfs-seeAlso'>sha1()</a> - Calcule le sha1 d'une cha&amp;icirc;ne de caract&amp;egrave;res</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/fr/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'>&amp;Eacute;crit dans un fichier compress&amp;eacute; gzip</span></p> </div> <a name='function.gzwrite.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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> &amp;eacute;crit le contenu de la cha&amp;icirc;ne <i><tt class='parameter'>string</tt></i> dans le fichier compress&amp;eacute; <i><tt class='parameter'>zp</tt></i> . </p> </div> <a name='function.gzwrite.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/function.gzopen.php' class='function'>gzopen()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>string</tt></i> </span> </dt><dd class='listitem'> <p class='para'> La cha&amp;icirc;ne &amp;agrave; &amp;eacute;crire. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le nombre d&amp;#039;octets d&amp;eacute;compress&amp;eacute;s &amp;agrave; &amp;eacute;crire. Si fournie, l&amp;#039;&amp;eacute;criture s&amp;#039;arr&amp;ecirc;tera apr&amp;egrave;s <i><tt class='parameter'>length</tt></i> (d&amp;eacute;compress&amp;eacute;) octets &amp;eacute;crits ou si la fin de la cha&amp;icirc;ne <i><tt class='parameter'>string</tt></i> est atteinte ; celui qui survient le premier. </p> <blockquote><p><b class='note'>Note</b>: Notez que si l&amp;#039;argument <i><tt class='parameter'>length</tt></i> est donn&amp;eacute;, alors l&amp;#039;option de configuration <a href='http://www.php.net/manual/fr/info.configuration.php#ini.magic-quotes-runtime' class='link'>magic_quotes_runtime</a> sera ignor&amp;eacute; et aucun slash ne sera supprim&amp;eacute; de la cha&amp;icirc;ne <i><tt class='parameter'>string</tt></i> . <br /> </p></blockquote> </dd> </dl> <p> </p> </div> <a name='function.gzwrite.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne le nombre d&amp;#039;octets (d&amp;eacute;compress&amp;eacute;s) &amp;eacute;crits dans le fichier gz donn&amp;eacute;. </p> </div> <a name='function.gzwrite.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzwrite()</b></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'>'Quelques&amp;nbsp;informations&amp;nbsp;&amp;agrave;&amp;nbsp;compresser'</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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzread.php' class='function' rel='rdfs-seeAlso'>gzread()</a> - Lecture de fichier compress&amp;eacute; binaire</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - Ouvre un fichier compress&amp;eacute; avec gzip</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/fr/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'>D&amp;eacute;compresse une cha&amp;icirc;ne compress&amp;eacute;e</span></p> </div> <a name='function.gzuncompress.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzuncompress()</b> d&amp;eacute;compresse une cha&amp;icirc;ne compress&amp;eacute;e. </p> </div> <a name='function.gzuncompress.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Les donn&amp;eacute;es compress&amp;eacute;es par <a href='http://www.php.net/manual/fr/function.gzcompress.php' class='function'>gzcompress()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> La longueur maximale de donn&amp;eacute;es &amp;agrave; d&amp;eacute;coder. </p> </dd> </dl> <p> </p> </div> <a name='function.gzuncompress.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Les donn&amp;eacute;es originales d&amp;eacute;compress&amp;eacute;es ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> <p class='para'> <b>gzuncompress()</b> retourne une erreur si la cha&amp;icirc;ne d&amp;eacute;compress&amp;eacute;e est 32768 fois plus longue que la cha&amp;icirc;ne compress&amp;eacute;e <i><tt class='parameter'>data</tt></i> ou plus grande que la taille de <i><tt class='parameter'>length</tt></i> octets, pass&amp;eacute; comme param&amp;egrave;tre optionnel. </p> </div> <a name='function.gzuncompress.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzuncompress()</b></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'>'Compresse&amp;nbsp;moi'</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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzcompress.php' class='function' rel='rdfs-seeAlso'>gzcompress()</a> - Compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzinflate.php' class='function' rel='rdfs-seeAlso'>gzinflate()</a> - D&amp;eacute;compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzdeflate.php' class='function' rel='rdfs-seeAlso'>gzdeflate()</a> - Compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzencode.php' class='function' rel='rdfs-seeAlso'>gzencode()</a> - Cr&amp;eacute;e une cha&amp;icirc;ne compress&amp;eacute;e gzip</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/fr/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'>Lit la position courante du pointeur de lecture</span></p> </div> <a name='function.gztell.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gztell()</b> retourne la position du pointeur de lecture dans le fichier <i><tt class='parameter'>zp</tt></i> . </p> </div> <a name='function.gztell.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/function.gzopen.php' class='function'>gzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.gztell.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La position du pointeur de fichier ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.gztell.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - Ouvre un fichier compress&amp;eacute; avec gzip</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzseek.php' class='function' rel='rdfs-seeAlso'>gzseek()</a> - D&amp;eacute;place le pointeur de lecture</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzrewind.php' class='function' rel='rdfs-seeAlso'>gzrewind()</a> - Replace le pointeur au d&amp;eacute;but du fichier</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/fr/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'>D&amp;eacute;place le pointeur de lecture</span></p> </div> <a name='function.gzseek.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzseek()</b> place le pointeur de lecture du fichier <i><tt class='parameter'>zp</tt></i> &amp;agrave; la position <i><tt class='parameter'>offset</tt></i> , compt&amp;eacute;e en octets depuis le d&amp;eacute;but du fichier. C&amp;#039;est l&amp;#039;&amp;eacute;quivalent de la fonction <i>gzseek(zp, offset, SEEK_SET)</i>, du langage C. </p> <p class='para'> Si le fichier est ouvert en lecture, cette fonction est alors &amp;eacute;mul&amp;eacute;e, et se r&amp;eacute;v&amp;egrave;le extr&amp;ecirc;mement lente. Si le fichier est ouvert en &amp;eacute;criture, seuls les d&amp;eacute;placements vers l&amp;#039;avant sont support&amp;eacute;s : <b>gzseek()</b> compresse alors une s&amp;eacute;rie de z&amp;eacute;ros jusqu&amp;#039;&amp;agrave; la nouvelle position. </p> </div> <a name='function.gzseek.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier gz. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/function.gzopen.php' class='function'>gzopen()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>offset</tt></i> </span> </dt><dd class='listitem'> <p class='para'> La position d&amp;eacute;sir&amp;eacute;e. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>whence</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Les valeurs de <i><tt class='parameter'>whence</tt></i> sont : </p><ul class='simplelist'> <li class='member'><b><tt class='constant'>SEEK_SET</tt></b> : ram&amp;egrave;ne la position &amp;agrave; l&amp;#039;<i><tt class='parameter'>offset</tt></i> .</li> <li class='member'><b><tt class='constant'>SEEK_CUR</tt></b> : ram&amp;egrave;ne la position &amp;agrave; la position actuelle plus <i><tt class='parameter'>offset</tt></i> .</li> </ul><p> </p> <p class='para'> Si <i><tt class='parameter'>whence</tt></i> n&amp;#039;est pas sp&amp;eacute;cifi&amp;eacute;, il vaut par d&amp;eacute;faut <b><tt class='constant'>SEEK_SET</tt></b>. </p> </dd> </dl> <p> </p> </div> <a name='function.gzseek.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> 0 en cas de r&amp;eacute;ussite, -1 sinon. Notez que placer le pointeur au del&amp;agrave; de la fin du fichier n&amp;#039;est pas consid&amp;eacute;r&amp;eacute; comme une erreur. </p> </div> <a name='function.gzseek.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzseek()</b></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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gztell.php' class='function' rel='rdfs-seeAlso'>gztell()</a> - Lit la position courante du pointeur de lecture</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzrewind.php' class='function' rel='rdfs-seeAlso'>gzrewind()</a> - Replace le pointeur au d&amp;eacute;but du fichier</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/fr/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'>Replace le pointeur au d&amp;eacute;but du fichier</span></p> </div> <a name='function.gzrewind.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzrewind()</b> replace le pointeur de position du fichier <i><tt class='parameter'>zp</tt></i> au d&amp;eacute;but de celui-ci. </p> </div> <a name='function.gzrewind.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier gz. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/function.gzopen.php' class='function'>gzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.gzrewind.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> en cas de succ&amp;egrave;s ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.gzrewind.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzseek.php' class='function' rel='rdfs-seeAlso'>gzseek()</a> - D&amp;eacute;place le pointeur de lecture</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gztell.php' class='function' rel='rdfs-seeAlso'>gztell()</a> - Lit la position courante du pointeur de lecture</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/fr/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'>Lecture de fichier compress&amp;eacute; binaire</span></p> </div> <a name='function.gzread.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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> lit jusqu&amp;#039;&amp;agrave; <i><tt class='parameter'>length</tt></i> octets dans le fichier compress&amp;eacute; gzip, repr&amp;eacute;sent&amp;eacute; par <i><tt class='parameter'>zp</tt></i> . La lecture s&amp;#039;arr&amp;ecirc;te lorsque <i><tt class='parameter'>length</tt></i> octets (d&amp;eacute;compress&amp;eacute;s) ont &amp;eacute;t&amp;eacute; lus, ou que la fin du fichier a &amp;eacute;t&amp;eacute; atteinte (position <acronym title='End Of File'>EOF</acronym>). </p> </div> <a name='function.gzread.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier gz. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/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'> Le nombre d&amp;#039;octets lus. </p> </dd> </dl> <p> </p> </div> <a name='function.gzread.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Les donn&amp;eacute;es qui ont &amp;eacute;t&amp;eacute; lues. </p> </div> <a name='function.gzread.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzread()</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;r&amp;eacute;cup&amp;egrave;re&amp;nbsp;le&amp;nbsp;contenu&amp;nbsp;d'un&amp;nbsp;fichier&amp;nbsp;gz&amp;nbsp;dans&amp;nbsp;une&amp;nbsp;cha&amp;icirc;ne<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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzwrite.php' class='function' rel='rdfs-seeAlso'>gzwrite()</a> - &amp;Eacute;crit dans un fichier compress&amp;eacute; gzip</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - Ouvre un fichier compress&amp;eacute; avec gzip</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzgets.php' class='function' rel='rdfs-seeAlso'>gzgets()</a> - Lit une ligne dans un fichier compress&amp;eacute;</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzgetss.php' class='function' rel='rdfs-seeAlso'>gzgetss()</a> - Lit une ligne dans un fichier compress&amp;eacute;, et supprime les balises HTML</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzfile.php' class='function' rel='rdfs-seeAlso'>gzfile()</a> - Lit la totalit&amp;eacute; d'un fichier compress&amp;eacute;</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzpassthru.php' class='function' rel='rdfs-seeAlso'>gzpassthru()</a> - Affiche toutes les donn&amp;eacute;es qui restent dans un pointeur gz</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/fr/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 de <a href='http://www.php.net/manual/fr/function.gzwrite.php' class='function'>gzwrite()</a></span></p> </div> <a name='function.gzputs.description'></a><div class='refsect1 description'> <h3 class='title'>Description</h3> <p class='simpara'> Cette fonction est un alias de : <a href='http://www.php.net/manual/fr/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/fr/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'> Affiche toutes les donn&amp;eacute;es qui restent dans un pointeur gz </span></p> </div> <a name='function.gzpassthru.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzpassthru()</b> lit les donn&amp;eacute;es restantes du fichier <i><tt class='parameter'>zp</tt></i> jusqu&amp;#039;&amp;agrave; la fin (position <acronym title='End Of File'>EOF</acronym>), puis affiche le r&amp;eacute;sultat (d&amp;eacute;compress&amp;eacute;). </p> <blockquote><p><b class='note'>Note</b>: Vous pourriez avoir besoin d&amp;#039;appeler la fonction <a href='http://www.php.net/manual/fr/function.gzrewind.php' class='function'>gzrewind()</a> pour r&amp;eacute;initialiser le pointeur de fichier au d&amp;eacute;but du fichier si vous avez d&amp;eacute;j&amp;agrave; &amp;eacute;crit des donn&amp;eacute;es dedans. <br /> </p></blockquote> <div class='tip'><b class='tip'>Astuce</b> <p class='para'> Si vous voulez uniquement afficher le contenu d&amp;#039;un fichier, sans le modifier auparavant ou sans d&amp;eacute;placer le pointeur &amp;agrave; une position particuli&amp;egrave;re, vous devriez utiliser la fonction <a href='http://www.php.net/manual/fr/function.readgzfile.php' class='function'>readgzfile()</a>, ce qui vous &amp;eacute;vitera d&amp;#039;appeler la fonction <a href='http://www.php.net/manual/fr/function.gzopen.php' class='function'>gzopen()</a>. </p> </div> </div> <a name='function.gzpassthru.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier gz. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/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'>Valeurs de retour</h3> <p class='para'> Le nombre de caract&amp;egrave;res d&amp;eacute;compress&amp;eacute;s lus depuis <i><tt class='parameter'>gz</tt></i> et affich&amp;eacute; ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.gzpassthru.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzpassthru()</b></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/fr/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'>Ouvre un fichier compress&amp;eacute; avec gzip</span></p> </div> <a name='function.gzopen.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzopen()</b> ouvre un fichier compress&amp;eacute; avec gzip pour y &amp;eacute;crire ou y lire des donn&amp;eacute;es. </p> <p class='para'> <b>gzopen()</b> peut &amp;ecirc;tre utilis&amp;eacute;e pour lire un fichier qui n&amp;#039;est pas dans un format gzip ; dans ce cas, <a href='http://www.php.net/manual/fr/function.gzread.php' class='function'>gzread()</a> lira directement le fichier sans d&amp;eacute;compression. </p> </div> <a name='function.gzopen.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le nom du fichier. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Comme dans la fonction <a href='http://www.php.net/manual/fr/function.fopen.php' class='function'>fopen()</a> (<i>rb</i> ou <i>wb</i>) mais peut &amp;eacute;galement inclure un degr&amp;eacute; de compression (<i>wb9</i>) ou une strat&amp;eacute;gie : <i>f</i> pour les donn&amp;eacute;es filtr&amp;eacute;es comme <i>wb6f</i>, <i>h</i> pour <i>Huffman only compression</i> comme <i>wb1h</i>. (Lisez la description de <i>deflateInit2</i> dans le fichier <var class='filename'>zlib.h</var> pour plus d&amp;#039;informations sur la strat&amp;eacute;gie des param&amp;egrave;tres.) </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'> Vous pouvez d&amp;eacute;finir ce param&amp;egrave;tre optionnel &amp;agrave; <i>1</i>, si vous voulez chercher un fichier &amp;eacute;galement dans l&amp;#039;<a href='http://www.php.net/manual/fr/ini.core.php#ini.include-path' class='link'>include_path</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.gzopen.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne un pointeur de fichier vers le fichier ouvert, ainsi, la lecture depuis ce pointeur de fichier sera des donn&amp;eacute;es d&amp;eacute;compress&amp;eacute;es et ce que vous y &amp;eacute;crirez, sera compress&amp;eacute;. </p> <p class='para'> Si l&amp;#039;ouverture &amp;eacute;choue, cette fonction retourne <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.gzopen.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzopen()</b></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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzclose.php' class='function' rel='rdfs-seeAlso'>gzclose()</a> - Ferme un pointeur sur un fichier gz ouvert</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/fr/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'>D&amp;eacute;compresse une cha&amp;icirc;ne</span></p> </div> <a name='function.gzinflate.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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 class='initializer'> = 0</span></span> ] )</div> <p class='para rdfs-comment'> <b>gzinflate()</b> d&amp;eacute;compresse une cha&amp;icirc;ne. </p> </div> <a name='function.gzinflate.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Les donn&amp;eacute;es compress&amp;eacute;es avec la fonction <a href='http://www.php.net/manual/fr/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'> La longueur maximale de donn&amp;eacute;es &amp;agrave; d&amp;eacute;coder. </p> </dd> </dl> <p> </p> </div> <a name='function.gzinflate.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Les donn&amp;eacute;es originales d&amp;eacute;compress&amp;eacute;es ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> <p class='para'> <b>gzinflate()</b> retourne une erreur si la cha&amp;icirc;ne d&amp;eacute;compress&amp;eacute;e est plus de 32768 fois plus longue que la cha&amp;icirc;ne compress&amp;eacute;e <i><tt class='parameter'>data</tt></i> ou plus grande que la taille de <i><tt class='parameter'>length</tt></i> octets, pass&amp;eacute; comme param&amp;egrave;tre optionnel. </p> </div> <a name='function.gzinflate.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzinflate()</b></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'>'Compresse&amp;nbsp;moi'</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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzdeflate.php' class='function' rel='rdfs-seeAlso'>gzdeflate()</a> - Compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzcompress.php' class='function' rel='rdfs-seeAlso'>gzcompress()</a> - Compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzuncompress.php' class='function' rel='rdfs-seeAlso'>gzuncompress()</a> - D&amp;eacute;compresse une cha&amp;icirc;ne compress&amp;eacute;e</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzencode.php' class='function' rel='rdfs-seeAlso'>gzencode()</a> - Cr&amp;eacute;e une cha&amp;icirc;ne compress&amp;eacute;e gzip</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/fr/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'> Lit une ligne dans un fichier compress&amp;eacute;, et supprime les balises HTML </span></p> </div> <a name='function.gzgetss.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzgetss()</b> est identique &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/function.gzgets.php' class='function'>gzgets()</a>, except&amp;eacute; que <b>gzgetss()</b> tente de supprimer toutes les balises HTML et PHP du texte lu. </p> </div> <a name='function.gzgetss.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier gz. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/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'> La longueur des donn&amp;eacute;es &amp;agrave; r&amp;eacute;cup&amp;eacute;rer. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>allowable_tags</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Vous pouvez utiliser ce param&amp;egrave;tre optionnel pour sp&amp;eacute;cifier les balises &amp;agrave; ne pas supprimer. </p> </dd> </dl> <p> </p> </div> <a name='function.gzgetss.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La cha&amp;icirc;ne d&amp;eacute;compress&amp;eacute;e et nettoy&amp;eacute;e ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.gzgetss.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>Historique</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>Version</th> <th>Description</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.0.0</td> <td align='left'> <i><tt class='parameter'>allowable_tags</tt></i> a &amp;eacute;t&amp;eacute; ajout&amp;eacute;e. </td> </tr> </tbody> </table> <p> </p> </div> <a name='function.gzgetss.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzgetss()</b></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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - Ouvre un fichier compress&amp;eacute; avec gzip</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzgets.php' class='function' rel='rdfs-seeAlso'>gzgets()</a> - Lit une ligne dans un fichier compress&amp;eacute;</li> <li class='member'><a href='http://www.php.net/manual/fr/function.strip-tags.php' class='function' rel='rdfs-seeAlso'>strip_tags()</a> - Supprime les balises HTML et PHP d'une cha&amp;icirc;ne</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/fr/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'>Lit une ligne dans un fichier compress&amp;eacute;</span></p> </div> <a name='function.gzgets.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzgets()</b> retourne une cha&amp;icirc;ne non compress&amp;eacute;e, de taille maximale <i><tt class='parameter'>length</tt></i> - 1 octets, lue dans le fichier repr&amp;eacute;sent&amp;eacute; par <i><tt class='parameter'>zp</tt></i> . La lecture s&amp;#039;arr&amp;ecirc;te lorsque <i><tt class='parameter'>length</tt></i> - 1 octets ont &amp;eacute;t&amp;eacute; lus, ou que la fonction a rencontr&amp;eacute; une nouvelle ligne ou la fin du fichier (le premier des trois qui survient). </p> </div> <a name='function.gzgets.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier gz. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/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'> La longueur de donn&amp;eacute;es &amp;agrave; lire. </p> </dd> </dl> <p> </p> </div> <a name='function.gzgets.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La cha&amp;icirc;ne d&amp;eacute;compress&amp;eacute;e ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.gzgets.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzgets()</b></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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - Ouvre un fichier compress&amp;eacute; avec gzip</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzgetc.php' class='function' rel='rdfs-seeAlso'>gzgetc()</a> - Lit un caract&amp;egrave;re dans un fichier compress&amp;eacute;</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzwrite.php' class='function' rel='rdfs-seeAlso'>gzwrite()</a> - &amp;Eacute;crit dans un fichier compress&amp;eacute; gzip</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/fr/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'>Lit un caract&amp;egrave;re dans un fichier compress&amp;eacute;</span></p> </div> <a name='function.gzgetc.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzgetc()</b> retourne une cha&amp;icirc;ne contenant un seul caract&amp;egrave;re (d&amp;eacute;compress&amp;eacute;) lu depuis le pointeur de fichier gz. </p> </div> <a name='function.gzgetc.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier gz. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/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'>Valeurs de retour</h3> <p class='para'> Le caract&amp;egrave;re d&amp;eacute;compress&amp;eacute; ou <b><tt class='constant'>FALSE</tt></b> si le pointeur est &amp;agrave; la fin du fichier, position <acronym title='End Of File'>EOF</acronym> (contrairement &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/function.gzeof.php' class='function'>gzeof()</a>). </p> </div> <a name='function.gzgetc.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzgetc()</b></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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - Ouvre un fichier compress&amp;eacute; avec gzip</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzgets.php' class='function' rel='rdfs-seeAlso'>gzgets()</a> - Lit une ligne dans un fichier compress&amp;eacute;</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/fr/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'>Lit la totalit&amp;eacute; d&amp;#039;un fichier compress&amp;eacute;</span></p> </div> <a name='function.gzfile.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzfile()</b> est identique &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/function.readgzfile.php' class='function'>readgzfile()</a>, except&amp;eacute; qu&amp;#039;elle retourne le fichier dans un tableau. </p> </div> <a name='function.gzfile.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le nom du fichier. </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'> Vous pouvez d&amp;eacute;finir ce param&amp;egrave;tre optionnel &amp;agrave; <i>1</i>, si vous voulez chercher le fichier &amp;eacute;galement dans l&amp;#039;<a href='http://www.php.net/manual/fr/ini.core.php#ini.include-path' class='link'>include_path</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.gzfile.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Un tableau contenant le fichier, une ligne par cellule. </p> </div> <a name='function.gzfile.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzfile()</b></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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.readgzfile.php' class='function' rel='rdfs-seeAlso'>readgzfile()</a> - Lit tout le fichier compress&amp;eacute;</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - Ouvre un fichier compress&amp;eacute; avec gzip</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/fr/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'>Indique si la fin d&amp;#039;un fichier (<acronym title='End Of File'>EOF</acronym>) compress&amp;eacute; est atteinte</span></p> </div> <a name='function.gzeof.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> Indique si la fin d&amp;#039;un fichier compress&amp;eacute; est atteinte, c&amp;#039;est &amp;agrave; dire si le pointeur est &amp;agrave; la position <acronym title='End Of File'>EOF</acronym>. </p> </div> <a name='function.gzeof.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier gz. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/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'>Valeurs de retour</h3> <p class='para'> Retourne <b><tt class='constant'>TRUE</tt></b> si le pointeur de fichier gz est &amp;agrave; la fin du fichier (<acronym title='End Of File'>EOF</acronym>) ou si une erreur survient ; sinon, retourne <b><tt class='constant'>FALSE</tt></b>. </p> </div> <a name='function.gzeof.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzeof()</b></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/fr/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'>Cr&amp;eacute;e une cha&amp;icirc;ne compress&amp;eacute;e gzip</span></p> </div> <a name='function.gzencode.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzencode()</b> retourne la version compress&amp;eacute;e de la cha&amp;icirc;ne <i><tt class='parameter'>data</tt></i> compatible avec la sortie du programme <strong class='command'>gzip</strong>. </p> <p class='para'> Pour plus de d&amp;eacute;tails sur l&amp;#039;algorithme, lisez le document <a href='http://www.faqs.org/rfcs/rfc1952' class='link external'>&amp;raquo; <i>&amp;quot;ZLIB Compressed Data Format Specification version 4.3&amp;quot;</i></a> (RFC 1952). </p> </div> <a name='function.gzencode.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Les donn&amp;eacute;es &amp;agrave; encoder. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>level</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le degr&amp;eacute; de compression. 0 signifie aucune compression, jusqu&amp;#039;&amp;agrave; 9 pour une compression maximale. Si omis, le degr&amp;eacute; de compression par d&amp;eacute;faut sera celui de la biblioth&amp;egrave;que zlib. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>encoding_mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le mode d&amp;#039;encodage. Peut &amp;ecirc;tre <b><tt class='constant'>FORCE_GZIP</tt></b> (par d&amp;eacute;faut) ou <b><tt class='constant'>FORCE_DEFLATE</tt></b>. </p> <p class='para'> Si vous utilisez <b><tt class='constant'>FORCE_DEFLATE</tt></b>, vous r&amp;eacute;cup&amp;eacute;rez une cha&amp;icirc;ne standard zlib (incluant les en-t&amp;ecirc;tes zlib) apr&amp;egrave;s l&amp;#039;en-t&amp;ecirc;te de fichier gzip mais sans la somme de v&amp;eacute;rification (<i>checksum</i>) crc32 finale. </p> </dd> </dl> <p> </p> </div> <a name='function.gzencode.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La cha&amp;icirc;ne encod&amp;eacute;e ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.gzencode.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>Historique</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>Version</th> <th>Description</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.2</td> <td align='left'> <i><tt class='parameter'>level</tt></i> a &amp;eacute;t&amp;eacute; ajout&amp;eacute;. <b>gzencode()</b> n&amp;#039;avez que les param&amp;egrave;tres <i><tt class='parameter'>data</tt></i> et <i><tt class='parameter'>encoding_mode</tt></i> (optionnel) avant. </td> </tr> </tbody> </table> <p> </p> </div> <a name='function.gzencode.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> Les donn&amp;eacute;es r&amp;eacute;sultantes contiennent les en-t&amp;ecirc;tes appropri&amp;eacute;s ainsi que la structure de donn&amp;eacute;es pour faire un fichier .gz standard, e.g. : </p><div class='example'> <p><b>Exemple #1 Cr&amp;eacute;ation d&amp;#039;un fichier gzip</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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzdecode.php' class='function' rel='rdfs-seeAlso'>gzdecode()</a> - D&amp;eacute;code une cha&amp;icirc;ne de caract&amp;egrave;res compress&amp;eacute;e gzip</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzdeflate.php' class='function' rel='rdfs-seeAlso'>gzdeflate()</a> - Compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzinflate.php' class='function' rel='rdfs-seeAlso'>gzinflate()</a> - D&amp;eacute;compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzuncompress.php' class='function' rel='rdfs-seeAlso'>gzuncompress()</a> - D&amp;eacute;compresse une cha&amp;icirc;ne compress&amp;eacute;e</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzcompress.php' class='function' rel='rdfs-seeAlso'>gzcompress()</a> - Compresse une cha&amp;icirc;ne</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/fr/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'>Compresse une cha&amp;icirc;ne</span></p> </div> <a name='function.gzdeflate.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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 class='initializer'> = -1</span></span> ] )</div> <p class='para rdfs-comment'> <b>gzdeflate()</b> compresse la cha&amp;icirc;ne donn&amp;eacute;e en utilisant le format de donn&amp;eacute;es <i>DEFLATE</i>. </p> <p class='para'> Pour plus de d&amp;eacute;tails sur l&amp;#039;algorithme, lisez le document <a href='http://www.faqs.org/rfcs/rfc1951' class='link external'>&amp;raquo; <i>&amp;quot;ZLIB Compressed Data Format Specification version 1.3&amp;quot;</i></a> (RFC 1951). </p> </div> <a name='function.gzdeflate.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Les donn&amp;eacute;es &amp;agrave; compresser. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>level</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le degr&amp;eacute; de compression. 0 signifie aucune compression jusqu&amp;#039;&amp;agrave; 9 pour une compression maximale. Si omis, le degr&amp;eacute; de compression par d&amp;eacute;faut sera celui de la biblioth&amp;egrave;que zlib. </p> </dd> </dl> <p> </p> </div> <a name='function.gzdeflate.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La cha&amp;icirc;ne compress&amp;eacute;e ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.gzdeflate.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzdeflate()</b></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'>'Compresse&amp;nbsp;moi'</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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzinflate.php' class='function' rel='rdfs-seeAlso'>gzinflate()</a> - D&amp;eacute;compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzcompress.php' class='function' rel='rdfs-seeAlso'>gzcompress()</a> - Compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzuncompress.php' class='function' rel='rdfs-seeAlso'>gzuncompress()</a> - D&amp;eacute;compresse une cha&amp;icirc;ne compress&amp;eacute;e</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzencode.php' class='function' rel='rdfs-seeAlso'>gzencode()</a> - Cr&amp;eacute;e une cha&amp;icirc;ne compress&amp;eacute;e gzip</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/fr/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'>Compresse une cha&amp;icirc;ne</span></p> </div> <a name='function.gzcompress.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzcompress()</b> compresse la cha&amp;icirc;ne donn&amp;eacute;e en utilisant le format de donn&amp;eacute;es <i>ZLIB</i>. </p> <p class='para'> Pour plus de d&amp;eacute;tails sur l&amp;#039;algorithme, lisez le document <a href='http://www.faqs.org/rfcs/rfc1950' class='link external'>&amp;raquo; <i>&amp;quot;ZLIB Compressed Data Format Specification version 3.3&amp;quot;</i></a> (RFC 1950). </p> <blockquote><p><b class='note'>Note</b>: Ce n&amp;#039;est <em class='emphasis'>pas</em> la m&amp;ecirc;me chose que la compression gzip, qui inclut quelques en-t&amp;ecirc;tes de donn&amp;eacute;es. Voir <a href='http://www.php.net/manual/fr/function.gzencode.php' class='function'>gzencode()</a> pour la compression gzip. <br /> </p></blockquote> </div> <a name='function.gzcompress.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La donn&amp;eacute;e &amp;agrave; compresser. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>level</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Le degr&amp;eacute; de compression. 0 signifie aucune compression, jusqu&amp;#039;&amp;agrave; 9 pour une compression maximale. </p> </dd> </dl> <p> </p> </div> <a name='function.gzcompress.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La cha&amp;icirc;ne compress&amp;eacute;e ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.gzcompress.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzcompress()</b></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'>'Compresse&amp;nbsp;moi'</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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzdeflate.php' class='function' rel='rdfs-seeAlso'>gzdeflate()</a> - Compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzinflate.php' class='function' rel='rdfs-seeAlso'>gzinflate()</a> - D&amp;eacute;compresse une cha&amp;icirc;ne</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzuncompress.php' class='function' rel='rdfs-seeAlso'>gzuncompress()</a> - D&amp;eacute;compresse une cha&amp;icirc;ne compress&amp;eacute;e</li> <li class='member'><a href='http://www.php.net/manual/fr/function.gzencode.php' class='function' rel='rdfs-seeAlso'>gzencode()</a> - Cr&amp;eacute;e une cha&amp;icirc;ne compress&amp;eacute;e gzip</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/fr/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'>Ferme un pointeur sur un fichier gz ouvert</span></p> </div> <a name='function.gzclose.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>gzclose()</b> referme le fichier compress&amp;eacute; <i><tt class='parameter'>zp</tt></i> . </p> </div> <a name='function.gzclose.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier compress&amp;eacute;. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s gr&amp;acirc;ce &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/function.gzopen.php' class='function'>gzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.gzclose.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> en cas de succ&amp;egrave;s ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.gzclose.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>gzclose()</b></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'>'Je&amp;nbsp;suis&amp;nbsp;ajout&amp;eacute;&amp;nbsp;&amp;agrave;&amp;nbsp;somefile.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.gzclose.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.gzopen.php' class='function' rel='rdfs-seeAlso'>gzopen()</a> - Ouvre un fichier compress&amp;eacute; avec gzip</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/fr/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'>&amp;Eacute;criture binaire dans un fichier bzip2</span></p> </div> <a name='function.bzwrite.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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> &amp;eacute;crit le contenu de la cha&amp;icirc;ne <i><tt class='parameter'>data</tt></i> dans le fichier bzip2 repr&amp;eacute;sent&amp;eacute; par <i><tt class='parameter'>bz</tt></i> . </p> </div> <a name='function.bzwrite.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s par la fonction <a href='http://www.php.net/manual/fr/function.bzopen.php' class='function'>bzopen()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>data</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Les donn&amp;eacute;es &amp;eacute;crites. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Si fourni, l&amp;#039;&amp;eacute;criture s&amp;#039;arr&amp;ecirc;tera apr&amp;egrave;s que <i><tt class='parameter'>length</tt></i> (non-compress&amp;eacute;) octets aient &amp;eacute;t&amp;eacute; &amp;eacute;crits ou bien que la fin de <i><tt class='parameter'>data</tt></i> soit atteinte, le premier des deux qui survient. </p> </dd> </dl> <p> </p> </div> <a name='function.bzwrite.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne le nombre d&amp;#039;octets &amp;eacute;crits ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.bzwrite.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>bzwrite()</b></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'>'donn&amp;eacute;&amp;nbsp;non-compress&amp;eacute;e'</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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.bzread.php' class='function' rel='rdfs-seeAlso'>bzread()</a> - Lecture binaire d'un fichier bzip2</li> <li class='member'><a href='http://www.php.net/manual/fr/function.bzopen.php' class='function' rel='rdfs-seeAlso'>bzopen()</a> - Ouvre un fichier compress&amp;eacute; avec bzip2</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/fr/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'>Lecture binaire d&amp;#039;un fichier bzip2</span></p> </div> <a name='function.bzread.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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> lit depuis le pointeur de fichier bzip2 donn&amp;eacute;. </p> <p class='para'> La lecture s&amp;#039;arr&amp;ecirc;te lorsque <i><tt class='parameter'>length</tt></i> (non-compress&amp;eacute;) octets ont &amp;eacute;t&amp;eacute; lus ou si la fin du fichier est atteint, le premier des deux qui survient. </p> </div> <a name='function.bzread.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s par la fonction <a href='http://www.php.net/manual/fr/function.bzopen.php' class='function'>bzopen()</a>. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>length</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Si non sp&amp;eacute;cifi&amp;eacute;, <b>bzread()</b> lira 1024 (non-compress&amp;eacute;) octets &amp;agrave; la fois. </p> </dd> </dl> <p> </p> </div> <a name='function.bzread.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne les donn&amp;eacute;es non-compress&amp;eacute;es ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.bzread.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>bzread()</b></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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<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'>'Impossible&amp;nbsp;d'ouvrir&amp;nbsp;le&amp;nbsp;fichier&amp;nbsp;</span><span style='color: #0000BB'>$file</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<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 />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />echo&amp;nbsp;</span><span style='color: #DD0000'>'Le&amp;nbsp;contenu&amp;nbsp;du&amp;nbsp;fichier&amp;nbsp;</span><span style='color: #0000BB'>$file</span><span style='color: #DD0000'>&amp;nbsp;est&amp;nbsp;:&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 />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.bzwrite.php' class='function' rel='rdfs-seeAlso'>bzwrite()</a> - &amp;Eacute;criture binaire dans un fichier bzip2</li> <li class='member'><a href='http://www.php.net/manual/fr/function.feof.php' class='function' rel='rdfs-seeAlso'>feof()</a> - Teste la fin du fichier</li> <li class='member'><a href='http://www.php.net/manual/fr/function.bzopen.php' class='function' rel='rdfs-seeAlso'>bzopen()</a> - Ouvre un fichier compress&amp;eacute; avec bzip2</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/fr/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'>Ouvre un fichier compress&amp;eacute; avec bzip2</span></p> </div> <a name='function.bzopen.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>bzopen()</b> ouvre un fichier bzip2 (.bz2) en &amp;eacute;criture ou en lecture. </p> </div> <a name='function.bzopen.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le nom du fichier &amp;agrave; ouvrir. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>mode</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Similaire &amp;agrave; la fonction <a href='http://www.php.net/manual/fr/function.fopen.php' class='function'>fopen()</a>, seules les options &amp;#039;r&amp;#039; (pour lecture), et &amp;#039;w&amp;#039; (pour &amp;eacute;criture) sont support&amp;eacute;es. Tout autre option fera que la fonction retournera <b><tt class='constant'>FALSE</tt></b>. </p> </dd> </dl> <p> </p> </div> <a name='function.bzopen.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Si l&amp;#039;ouverture &amp;eacute;choue, <b>bzopen()</b> retourne <b><tt class='constant'>FALSE</tt></b>, sinon, il retourne un pointeur vers le fichier ouvert. </p> </div> <a name='function.bzopen.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>bzopen()</b></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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<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'>'Impossible&amp;nbsp;d'ouvrir&amp;nbsp;le&amp;nbsp;fichier&amp;nbsp;</span><span style='color: #0000BB'>$file</span><span style='color: #DD0000'>&amp;nbsp;pour&amp;nbsp;lecture'</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br /></span><span style='color: #0000BB'>bzclose</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$bz</span><span style='color: #007700'>);<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.bzclose.php' class='function' rel='rdfs-seeAlso'>bzclose()</a> - Ferme un fichier bzip2</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/fr/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'>Force l&amp;#039;&amp;eacute;criture de toutes les donn&amp;eacute;es compress&amp;eacute;es</span></p> </div> <a name='function.bzflush.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>bzflush()</b> force l&amp;#039;&amp;eacute;criture de toutes les donn&amp;eacute;es bzip2 mises en tampon pour le fichier repr&amp;eacute;sent&amp;eacute; par <i><tt class='parameter'>bz</tt></i> . </p> </div> <a name='function.bzflush.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s par la fonction <a href='http://www.php.net/manual/fr/function.bzopen.php' class='function'>bzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.bzflush.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> en cas de succ&amp;egrave;s ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.bzflush.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.bzread.php' class='function' rel='rdfs-seeAlso'>bzread()</a> - Lecture binaire d'un fichier bzip2</li> <li class='member'><a href='http://www.php.net/manual/fr/function.bzwrite.php' class='function' rel='rdfs-seeAlso'>bzwrite()</a> - &amp;Eacute;criture binaire dans un fichier bzip2</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/fr/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'>Retourne le message d&amp;#039;erreur bzip2</span></p> </div> <a name='function.bzerrstr.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>bzerrstr()</b> retourne le message d&amp;#039;erreur du fichier bz2 repr&amp;eacute;sent&amp;eacute; par le pointeur <i><tt class='parameter'>bz</tt></i> . </p> </div> <a name='function.bzerrstr.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s par la fonction <a href='http://www.php.net/manual/fr/function.bzopen.php' class='function'>bzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.bzerrstr.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne une cha&amp;icirc;ne contenant le message d&amp;#039;erreur. </p> </div> <a name='function.bzerrstr.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.bzerrno.php' class='function' rel='rdfs-seeAlso'>bzerrno()</a> - Retourne le code d'erreur bzip2</li> <li class='member'><a href='http://www.php.net/manual/fr/function.bzerror.php' class='function' rel='rdfs-seeAlso'>bzerror()</a> - Retourne le num&amp;eacute;ro et le message d'erreur bzip2 dans un tableau</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/fr/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'>Retourne le num&amp;eacute;ro et le message d&amp;#039;erreur bzip2 dans un tableau</span></p> </div> <a name='function.bzerror.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>bzerror()</b> retourne un tableau associatif avec le num&amp;eacute;ro et le message d&amp;#039;erreur du fichier bz2 repr&amp;eacute;sent&amp;eacute; par le pointeur <i><tt class='parameter'>bz</tt></i> . </p> </div> <a name='function.bzerror.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s par la fonction <a href='http://www.php.net/manual/fr/function.bzopen.php' class='function'>bzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.bzerror.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne un tableau associatif, avec le code erreur dans l&amp;#039;entr&amp;eacute;e <i>errno</i>, et le message d&amp;#039;erreur dans l&amp;#039;entr&amp;eacute;e <i>errstr</i>. </p> </div> <a name='function.bzerror.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 Exemple avec <b>bzerror()</b></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 />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.bzerrno.php' class='function' rel='rdfs-seeAlso'>bzerrno()</a> - Retourne le code d'erreur bzip2</li> <li class='member'><a href='http://www.php.net/manual/fr/function.bzerrstr.php' class='function' rel='rdfs-seeAlso'>bzerrstr()</a> - Retourne le message d'erreur bzip2</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/fr/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'>Retourne le code d&amp;#039;erreur bzip2</span></p> </div> <a name='function.bzerrno.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>bzerrno()</b> retourne le code d&amp;#039;erreur du fichier bz2 repr&amp;eacute;sent&amp;eacute; par le pointeur <i><tt class='parameter'>bz</tt></i> . </p> </div> <a name='function.bzerrno.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s avec la fonction <a href='http://www.php.net/manual/fr/function.bzopen.php' class='function'>bzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.bzerrno.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Retourne le code erreur sous la forme d&amp;#039;un entier. </p> </div> <a name='function.bzerrno.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.bzerror.php' class='function' rel='rdfs-seeAlso'>bzerror()</a> - Retourne le num&amp;eacute;ro et le message d'erreur bzip2 dans un tableau</li> <li class='member'><a href='http://www.php.net/manual/fr/function.bzerrstr.php' class='function' rel='rdfs-seeAlso'>bzerrstr()</a> - Retourne le message d'erreur bzip2</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/fr/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'>D&amp;eacute;compresse une cha&amp;icirc;ne bzip2</span></p> </div> <a name='function.bzdecompress.description'></a><div class='refsect1 description'> <h3 class='title'>Description</h3> <div class='methodsynopsis dc-description'> <span class='type'><a href='http://www.php.net/manual/fr/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> d&amp;eacute;compresse la cha&amp;icirc;ne <i><tt class='parameter'>source</tt></i> , contenant des donn&amp;eacute;es compress&amp;eacute;es bzip2. </p> </div> <a name='function.bzdecompress.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La cha&amp;icirc;ne &amp;agrave; d&amp;eacute;compresser. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>small</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Si ce param&amp;egrave;tre vaut <b><tt class='constant'>TRUE</tt></b>, un autre algorithme de d&amp;eacute;compression sera utilis&amp;eacute; : il consomme moins de m&amp;eacute;moire (le maximum demand&amp;eacute; tombe autour de 2300 ko), mais fonctionne globalement &amp;agrave; la moiti&amp;eacute; de la vitesse. </p> <p class='para'> Reportez-vous &amp;agrave; la <a href='http://www.bzip.org/' class='link external'>&amp;raquo; documentation bzip2</a> pour plus de d&amp;eacute;tails sur cette fonctionnalit&amp;eacute;. </p> </dd> </dl> <p> </p> </div> <a name='function.bzdecompress.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La cha&amp;icirc;ne d&amp;eacute;compress&amp;eacute;e ou un num&amp;eacute;ro erreur si une erreur survient. </p> </div> <a name='function.bzdecompress.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <p class='para'> </p><div class='example'> <p><b>Exemple #1 D&amp;eacute;compression d&amp;#039;une cha&amp;icirc;ne</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'>'phrase&amp;nbsp;&amp;agrave;&amp;nbsp;compresser'</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'>'Cha&amp;icirc;ne&amp;nbsp;compress&amp;eacute;e&amp;nbsp;:&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'>'Cha&amp;icirc;ne&amp;nbsp;d&amp;eacute;compress&amp;eacute;e&amp;nbsp;:&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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.bzcompress.php' class='function' rel='rdfs-seeAlso'>bzcompress()</a> - Compresse une cha&amp;icirc;ne avec bzip2</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/fr/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'>Compresse une cha&amp;icirc;ne avec bzip2</span></p> </div> <a name='function.bzcompress.description'></a><div class='refsect1 description'> <h3 class='title'>Description</h3> <div class='methodsynopsis dc-description'> <span class='type'><a href='http://www.php.net/manual/fr/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> compresse la cha&amp;icirc;ne <i><tt class='parameter'>source</tt></i> et retourne les donn&amp;eacute;es ainsi encod&amp;eacute;es. </p> </div> <a name='function.bzcompress.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> La cha&amp;icirc;ne &amp;agrave; compresser. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>blocksize</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Sp&amp;eacute;cifie la taille de bloc utilis&amp;eacute;e durant la compression et doit &amp;ecirc;tre un nombre de 1 &amp;agrave; 9, sachant que 9 repr&amp;eacute;sente la meilleure compression, mais qu&amp;#039;elle utilise plus de ressources pour se faire. </p> </dd> <dt class='varlistentry'> <span class='term'><i><tt class='parameter'>workfactor</tt></i> </span> </dt><dd class='listitem'> <p class='para'> Contr&amp;ocirc;le le comportement de la compression dans les pires cas de donn&amp;eacute;es hautement r&amp;eacute;p&amp;eacute;titives. Cette valeur peut aller de 0 &amp;agrave; 250 (0 est une valeur sp&amp;eacute;ciale). </p> <p class='para'> En dehors de <i><tt class='parameter'>workfactor</tt></i> , le r&amp;eacute;sultat sera le m&amp;ecirc;me. </p> </dd> </dl> <p> </p> </div> <a name='function.bzcompress.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> La cha&amp;icirc;ne compress&amp;eacute;e ou un num&amp;eacute;ro erreur si une erreur survient. </p> </div> <a name='function.bzcompress.examples'></a><div class='refsect1 examples'> <h3 class='title'>Exemples</h3> <div class='example'> <p><b>Exemple #1 Compression de donn&amp;eacute;es</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'>'donn&amp;eacute;e&amp;nbsp;simple'</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'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.bzdecompress.php' class='function' rel='rdfs-seeAlso'>bzdecompress()</a> - D&amp;eacute;compresse une cha&amp;icirc;ne bzip2</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/fr/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'>Ferme un fichier bzip2</span></p> </div> <a name='function.bzclose.description'></a><div class='refsect1 description'> <h3 class='title'>Description</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'> <b>bzclose()</b> ferme le fichier bzip2 repr&amp;eacute;sent&amp;eacute; par le pointeur <i><tt class='parameter'>bz</tt></i> . </p> </div> <a name='function.bzclose.parameters'></a><div class='refsect1 parameters'> <h3 class='title'>Liste de param&amp;egrave;tres</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'> Le pointeur de fichier. Il doit &amp;ecirc;tre valide et doit pointer vers un fichier ouvert avec succ&amp;egrave;s par la fonction <a href='http://www.php.net/manual/fr/function.bzopen.php' class='function'>bzopen()</a>. </p> </dd> </dl> <p> </p> </div> <a name='function.bzclose.returnvalues'></a><div class='refsect1 returnvalues'> <h3 class='title'>Valeurs de retour</h3> <p class='para'> Cette fonction retourne <b><tt class='constant'>TRUE</tt></b> en cas de succ&amp;egrave;s ou <b><tt class='constant'>FALSE</tt></b> si une erreur survient. </p> </div> <a name='function.bzclose.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>Voir aussi</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/fr/function.bzopen.php' class='function' rel='rdfs-seeAlso'>bzopen()</a> - Ouvre un fichier compress&amp;eacute; avec bzip2</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>

