dams Tue Apr 3 06:23:17 2001 EDT
Modified files:
/phpdoc/fr/functions filesystem.xml
Log:
Keeping up with en tree.
Index: phpdoc/fr/functions/filesystem.xml
diff -u phpdoc/fr/functions/filesystem.xml:1.18 phpdoc/fr/functions/filesystem.xml:1.19
--- phpdoc/fr/functions/filesystem.xml:1.18 Tue Mar 27 03:02:14 2001
+++ phpdoc/fr/functions/filesystem.xml Tue Apr 3 06:23:17 2001
@@ -2158,6 +2158,60 @@
</para>
</refsect1>
</refentry>
+ <refentry id="function.pathinfo">
+ <refnamediv>
+ <refname>pathinfo</refname>
+ <refpurpose>Retourne des informations sur un chemin syst¸me</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>array <function>pathinfo</function></funcdef>
+ <paramdef>string <parameter>path</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>pathinfo</function> retourne un tableau associatif,
+ contenant les informations sur le chemin <parameter>path</parameter>.
+ Les ˇlˇments de tableau suivants sont retournˇs :
+ <parameter>dirname</parameter>, <parameter>basename</parameter>
+ et <parameter>extension</parameter>.
+ </para>
+ <para>
+ <example>
+ <title>Exemple avec <function>pathinfo</function></title>
+ <programlisting role="php">
+<?php
+
+$path_parts = pathinfo("/www/htdocs/index.html");
+
+echo $path_parts["dirname"] . "\n";
+echo $path_parts["basename"] . "\n";
+echo $path_parts["extension"] . "\n";
+
+?>
+ </programlisting>
+ </example>
+ </para>
+ <para>
+ Va afficher :
+ <informalexample>
+ <programlisting>
+/www/htdocs
+index.html
+html
+ </programlisting>
+ </informalexample>
+ </para>
+ <para>
+ Voir aussi
+ <function>dirname</function>,
+ <function>basename</function> et
+ <function>realpath</function>.
+ </para>
+ </refsect1>
+ </refentry>
<refentry id="function.pclose">
<refnamediv>
<refname>pclose</refname>