cvs: phpdoc-fr /reference/filesystem/functions file-get-contents.xml file-get-wrapper-data.xml file-register-wrapper.xml rename.xml unlink.xml
| From: | Damien Seguy | Date: | Fri, 20 Sep 2002 01:01:52 +0000 |
| Subject: | cvs: phpdoc-fr /reference/filesystem/functions file-get-contents.xml file-get-wrapper-data.xml file-register-wrapper.xml rename.xml unlink.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-47@lists.php.net to get a copy of this message | ||
dams Thu Sep 19 21:01:52 2002 EDT
Added files:
/phpdoc-fr/reference/filesystem/functions file-get-contents.xml
file-get-wrapper-data.xml
file-register-wrapper.xml
Modified files:
/phpdoc-fr/reference/filesystem/functions rename.xml unlink.xml
Log:
adding new fucntions, updating unlink
Index: phpdoc-fr/reference/filesystem/functions/rename.xml diff -u phpdoc-fr/reference/filesystem/functions/rename.xml:1.2 phpdoc-fr/reference/filesystem/functions/rename.xml:1.3 --- phpdoc-fr/reference/filesystem/functions/rename.xml:1.2 Thu Aug 22 08:32:00 2002 +++ phpdoc-fr/reference/filesystem/functions/rename.xml Thu Sep 19 21:01:51 2002 @@ -4,12 +4,12 @@ <refentry id="function.rename"> <refnamediv> <refname>rename</refname> - <refpurpose>Renomme un fichier.</refpurpose> + <refpurpose>Renomme un fichier</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>int</type><methodname>rename</methodname> + <type>boolean</type><methodname>rename</methodname> <methodparam><type>string</type><parameter>oldname</parameter></methodparam> <methodparam><type>string</type><parameter>newname</parameter></methodparam> </methodsynopsis> @@ -25,7 +25,7 @@ <programlisting role="php"> <![CDATA[ <?php - rename("/tmp/tmp_file.txt", "/home/user/login/docs/my_file.txt"); + rename("/tmp/tmp_file.txt", "/home/user/login/docs/mon_file.txt"); ?> ]]> </programlisting> Index: phpdoc-fr/reference/filesystem/functions/unlink.xml diff -u phpdoc-fr/reference/filesystem/functions/unlink.xml:1.1 phpdoc-fr/reference/filesystem/functions/unlink.xml:1.2 --- phpdoc-fr/reference/filesystem/functions/unlink.xml:1.1 Sun Apr 14 20:28:26 2002 +++ phpdoc-fr/reference/filesystem/functions/unlink.xml Thu Sep 19 21:01:51 2002 @@ -1,54 +1 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./fr/functions/filesystem.xml, last change in rev 1.27 --> -<!-- last change to 'unlink' in en/ tree in rev 1.2 --> - <refentry id="function.unlink"> - <refnamediv> - <refname>unlink</refname> - <refpurpose>Efface un fichier.</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>unlink</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - <function>unlink</function> efface <parameter>filename</parameter>. - Identique à la fonction Unix C unlink(). - </para> - <para> - <function>unlink</function> retourne &false; en cas - d'échec. - </para> - <para> - Voir aussi - <function>rmdir</function> pour supprimer des dossiers. - </para> - <note> - <simpara> - <function>unlink</function> ne fonctionne pas sous Windows. - </simpara> - </note> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-1"?><!-- splitted from ./fr/functions/filesystem.xml, last change in rev 1.27 --><!-- last change to 'unlink' in en/ tree in rev 1.2 --> <refentry id="function.unlink"> <refnamediv> <refname>unlink</refname> <refpurpose>Efface un fichier</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>unlink</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> <function>unlink</function> efface <parameter>filename</parameter>. Identique à la fonction Unix C unlink(). </para> <para> <function>unlink</function> retourne &false; en cas d'échec. </para> <para> &return.success; </para> <para> Voir aussi <function>rmdir</function> pour supprimer des dossiers. </para> </refsect1> </refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:tsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tindent-tabs-mode:nilsgml-parent-document:nilsgml-default-dtd-file:"../../../../manual.ced"sgml-exposed-tags:nilsgml-local-catalogs:nilsgml-local-ecat-files:nilEnd:vim600: syn=xml fen fdm=syntax fdl=2 sivim: et tw=78 syn=sgmlvi: ts=1 sw=1--> \ No newline at end of file Index: phpdoc-fr/reference/filesystem/functions/file-get-contents.xml +++ phpdoc-fr/reference/filesystem/functions/file-get-contents.xml <?xml version="1.0" encoding="iso-8859-1"?><!-- $Revision: 1.1 $ --><!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.130 --> <refentry id="function.file-get-contents"> <refnamediv> <refname>file_get_contents</refname> <refpurpose>Lit tout un fichier dans une chaîne</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>file_get_contents</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>use_include_path</parameter></methodparam> </methodsynopsis> <para> <function>file_get_contents</function> est identique à la fonction <function>readfile</function>, hormis le fait que <function>file_get_contents</function> retourne le fichier <parameter>filename</parameter> dans une chaîne. </para> <note> <para> Cette fonction a été introduite en PHP 4.3.0. </para> </note> ¬e.bin-safe; &tip.fopen-wrapper; <simpara> Voir aussi <function>fgets</function>, <function>file</function>, <function>fread</function>, <function>include</function> et <function>readfile</function>. </simpara> </refsect1> </refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:tsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tindent-tabs-mode:nilsgml-parent-document:nilsgml-default-dtd-file:"../../../../manual.ced"sgml-exposed-tags:nilsgml-local-catalogs:nilsgml-local-ecat-files:nilEnd:vim600: syn=xml fen fdm=syntax fdl=2 sivim: et tw=78 syn=sgmlvi: ts=1 sw=1--> Index: phpdoc-fr/reference/filesystem/functions/file-get-wrapper-data.xml +++ phpdoc-fr/reference/filesystem/functions/file-get-wrapper-data.xml <?xml version="1.0" encoding="iso-8859-1"?><!-- $Revision: 1.1 $ --><!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.129 --> <refentry id="function.file_get_wrapper_data"> <refnamediv> <refname>file_get_wrapper_data</refname> <refpurpose>Lit les entêtes réseaux de fichiers distants</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>file_get_wrapper_data</methodname> <methodparam><type>int</type><parameter>fp</parameter></methodparam> </methodsynopsis> <simpara> <function>file_get_wrapper_data</function> retourne les entêtes réseaux ou les méta données retournées en même temps que les fichiers distants, accédé via <function>fopen</function>. C'est pratique pour retourner la réponse correcte aux connexions HTTP, ou pour faire des statistiques sur les ressources. </simpara> <simpara> Le format des données retournées est délibéréement non documenté actuellement, et il dépend du protocole utilisé pour accéder aux fichiers. </simpara> <note> <para> Cette fonction a été introduites en PHP 4.3.0. </para> </note> </refsect1> </refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:tsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tindent-tabs-mode:nilsgml-parent-document:nilsgml-default-dtd-file:"../../../../manual.ced"sgml-exposed-tags:nilsgml-local-catalogs:nilsgml-local-ecat-files:nilEnd:vim600: syn=xml fen fdm=syntax fdl=2 sivim: et tw=78 syn=sgmlvi: ts=1 sw=1--> Index: phpdoc-fr/reference/filesystem/functions/file-register-wrapper.xml +++ phpdoc-fr/reference/filesystem/functions/file-register-wrapper.xml <?xml version="1.0" encoding="iso-8859-1"?><!-- $Revision: 1.1 $ --><!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.141 --> <refentry id="function.file-register-wrapper"> <refnamediv> <refname>file_register_wrapper</refname> <refpurpose>Enregistre une classe d'accès aux fichiers distants</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>boolean</type><methodname>file_register_wrapper</methodname> <methodparam><type>string</type><parameter>protocol</parameter></methodparam> <methodparam><type>string</type><parameter>classname</parameter></methodparam> </methodsynopsis> <para> <function>file_register_wrapper</function> est actuellement uniquement documenté par cet exemple : <example> <title>Implémentation d'un protocole à encodage base64</title> <programlisting role="php"><![CDATA[class Base64EncodingStream { var $fp = null; function stream_open($path, $mode, $options, &$opened_path) { $this->fp = fopen($path, $mode); return is_resource($this->fp); } function stream_close() { fclose($this->fp); } function stream_read($count) { return false; // We only allow writing } function stream_write($data) { return fwrite($this->fp, base64_encode($data)); } function stream_flush() { fflush($this->fp); return true; } function stream_seek($offset, $whence) { return false; } function stream_gets() { return false; } function stream_tell() { return false; } function stream_eof() { return false; }}file_register_wrapper("base64", "Base64EncodingStream") or die("Impossible d'enregistrer le protocole");copy("/tmp/inputfile.txt", "base64:///tmp/outputfile.txt");readfile("/tmp/outputfile");]]> </programlisting> </example> </para> <para> <function>file_register_wrapper</function> retourne &false; si le protocole <parameter>protocol</parameter> dispose déjà d'un gestionnaire, ou si les outils d'accès aux fichiers distants est désactivé. </para> <note> <para> Cette fonction a été introduite en PHP 4.3.0. </para> </note> </refsect1> </refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:tsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tindent-tabs-mode:nilsgml-parent-document:nilsgml-default-dtd-file:"../../../../manual.ced"sgml-exposed-tags:nilsgml-local-catalogs:nilsgml-local-ecat-files:nilEnd:vim600: syn=xml fen fdm=syntax fdl=2 sivim: et tw=78 syn=sgmlvi: ts=1 sw=1-->
Index: phpdoc-fr/reference/filesystem/functions/rename.xml diff -u phpdoc-fr/reference/filesystem/functions/rename.xml:1.2 phpdoc-fr/reference/filesystem/functions/rename.xml:1.3 --- phpdoc-fr/reference/filesystem/functions/rename.xml:1.2 Thu Aug 22 08:32:00 2002 +++ phpdoc-fr/reference/filesystem/functions/rename.xml Thu Sep 19 21:01:51 2002 @@ -4,12 +4,12 @@ <refentry id="function.rename"> <refnamediv> <refname>rename</refname> - <refpurpose>Renomme un fichier.</refpurpose> + <refpurpose>Renomme un fichier</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>int</type><methodname>rename</methodname> + <type>boolean</type><methodname>rename</methodname> <methodparam><type>string</type><parameter>oldname</parameter></methodparam> <methodparam><type>string</type><parameter>newname</parameter></methodparam> </methodsynopsis> @@ -25,7 +25,7 @@ <programlisting role="php"> <![CDATA[ <?php - rename("/tmp/tmp_file.txt", "/home/user/login/docs/my_file.txt"); + rename("/tmp/tmp_file.txt", "/home/user/login/docs/mon_file.txt"); ?> ]]> </programlisting> Index: phpdoc-fr/reference/filesystem/functions/unlink.xml diff -u phpdoc-fr/reference/filesystem/functions/unlink.xml:1.1 phpdoc-fr/reference/filesystem/functions/unlink.xml:1.2 --- phpdoc-fr/reference/filesystem/functions/unlink.xml:1.1 Sun Apr 14 20:28:26 2002 +++ phpdoc-fr/reference/filesystem/functions/unlink.xml Thu Sep 19 21:01:51 2002 @@ -1,54 +1 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./fr/functions/filesystem.xml, last change in rev 1.27 --> -<!-- last change to 'unlink' in en/ tree in rev 1.2 --> - <refentry id="function.unlink"> - <refnamediv> - <refname>unlink</refname> - <refpurpose>Efface un fichier.</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>unlink</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - <function>unlink</function> efface <parameter>filename</parameter>. - Identique à la fonction Unix C unlink(). - </para> - <para> - <function>unlink</function> retourne &false; en cas - d'échec. - </para> - <para> - Voir aussi - <function>rmdir</function> pour supprimer des dossiers. - </para> - <note> - <simpara> - <function>unlink</function> ne fonctionne pas sous Windows. - </simpara> - </note> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-1"?><!-- splitted from ./fr/functions/filesystem.xml, last change in rev 1.27 --><!-- last change to 'unlink' in en/ tree in rev 1.2 --> <refentry id="function.unlink"> <refnamediv> <refname>unlink</refname> <refpurpose>Efface un fichier</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>unlink</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> <function>unlink</function> efface <parameter>filename</parameter>. Identique à la fonction Unix C unlink(). </para> <para> <function>unlink</function> retourne &false; en cas d'échec. </para> <para> &return.success; </para> <para> Voir aussi <function>rmdir</function> pour supprimer des dossiers. </para> </refsect1> </refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:tsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tindent-tabs-mode:nilsgml-parent-document:nilsgml-default-dtd-file:"../../../../manual.ced"sgml-exposed-tags:nilsgml-local-catalogs:nilsgml-local-ecat-files:nilEnd:vim600: syn=xml fen fdm=syntax fdl=2 sivim: et tw=78 syn=sgmlvi: ts=1 sw=1--> \ No newline at end of file Index: phpdoc-fr/reference/filesystem/functions/file-get-contents.xml +++ phpdoc-fr/reference/filesystem/functions/file-get-contents.xml <?xml version="1.0" encoding="iso-8859-1"?><!-- $Revision: 1.1 $ --><!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.130 --> <refentry id="function.file-get-contents"> <refnamediv> <refname>file_get_contents</refname> <refpurpose>Lit tout un fichier dans une chaîne</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>file_get_contents</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>use_include_path</parameter></methodparam> </methodsynopsis> <para> <function>file_get_contents</function> est identique à la fonction <function>readfile</function>, hormis le fait que <function>file_get_contents</function> retourne le fichier <parameter>filename</parameter> dans une chaîne. </para> <note> <para> Cette fonction a été introduite en PHP 4.3.0. </para> </note> ¬e.bin-safe; &tip.fopen-wrapper; <simpara> Voir aussi <function>fgets</function>, <function>file</function>, <function>fread</function>, <function>include</function> et <function>readfile</function>. </simpara> </refsect1> </refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:tsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tindent-tabs-mode:nilsgml-parent-document:nilsgml-default-dtd-file:"../../../../manual.ced"sgml-exposed-tags:nilsgml-local-catalogs:nilsgml-local-ecat-files:nilEnd:vim600: syn=xml fen fdm=syntax fdl=2 sivim: et tw=78 syn=sgmlvi: ts=1 sw=1--> Index: phpdoc-fr/reference/filesystem/functions/file-get-wrapper-data.xml +++ phpdoc-fr/reference/filesystem/functions/file-get-wrapper-data.xml <?xml version="1.0" encoding="iso-8859-1"?><!-- $Revision: 1.1 $ --><!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.129 --> <refentry id="function.file_get_wrapper_data"> <refnamediv> <refname>file_get_wrapper_data</refname> <refpurpose>Lit les entêtes réseaux de fichiers distants</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>file_get_wrapper_data</methodname> <methodparam><type>int</type><parameter>fp</parameter></methodparam> </methodsynopsis> <simpara> <function>file_get_wrapper_data</function> retourne les entêtes réseaux ou les méta données retournées en même temps que les fichiers distants, accédé via <function>fopen</function>. C'est pratique pour retourner la réponse correcte aux connexions HTTP, ou pour faire des statistiques sur les ressources. </simpara> <simpara> Le format des données retournées est délibéréement non documenté actuellement, et il dépend du protocole utilisé pour accéder aux fichiers. </simpara> <note> <para> Cette fonction a été introduites en PHP 4.3.0. </para> </note> </refsect1> </refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:tsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tindent-tabs-mode:nilsgml-parent-document:nilsgml-default-dtd-file:"../../../../manual.ced"sgml-exposed-tags:nilsgml-local-catalogs:nilsgml-local-ecat-files:nilEnd:vim600: syn=xml fen fdm=syntax fdl=2 sivim: et tw=78 syn=sgmlvi: ts=1 sw=1--> Index: phpdoc-fr/reference/filesystem/functions/file-register-wrapper.xml +++ phpdoc-fr/reference/filesystem/functions/file-register-wrapper.xml <?xml version="1.0" encoding="iso-8859-1"?><!-- $Revision: 1.1 $ --><!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.141 --> <refentry id="function.file-register-wrapper"> <refnamediv> <refname>file_register_wrapper</refname> <refpurpose>Enregistre une classe d'accès aux fichiers distants</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>boolean</type><methodname>file_register_wrapper</methodname> <methodparam><type>string</type><parameter>protocol</parameter></methodparam> <methodparam><type>string</type><parameter>classname</parameter></methodparam> </methodsynopsis> <para> <function>file_register_wrapper</function> est actuellement uniquement documenté par cet exemple : <example> <title>Implémentation d'un protocole à encodage base64</title> <programlisting role="php"><![CDATA[class Base64EncodingStream { var $fp = null; function stream_open($path, $mode, $options, &$opened_path) { $this->fp = fopen($path, $mode); return is_resource($this->fp); } function stream_close() { fclose($this->fp); } function stream_read($count) { return false; // We only allow writing } function stream_write($data) { return fwrite($this->fp, base64_encode($data)); } function stream_flush() { fflush($this->fp); return true; } function stream_seek($offset, $whence) { return false; } function stream_gets() { return false; } function stream_tell() { return false; } function stream_eof() { return false; }}file_register_wrapper("base64", "Base64EncodingStream") or die("Impossible d'enregistrer le protocole");copy("/tmp/inputfile.txt", "base64:///tmp/outputfile.txt");readfile("/tmp/outputfile");]]> </programlisting> </example> </para> <para> <function>file_register_wrapper</function> retourne &false; si le protocole <parameter>protocol</parameter> dispose déjà d'un gestionnaire, ou si les outils d'accès aux fichiers distants est désactivé. </para> <note> <para> Cette fonction a été introduite en PHP 4.3.0. </para> </note> </refsect1> </refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:tsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tindent-tabs-mode:nilsgml-parent-document:nilsgml-default-dtd-file:"../../../../manual.ced"sgml-exposed-tags:nilsgml-local-catalogs:nilsgml-local-ecat-files:nilEnd:vim600: syn=xml fen fdm=syntax fdl=2 sivim: et tw=78 syn=sgmlvi: ts=1 sw=1-->