[PHP-DOC] cvs: phpdoc /fr/functions filesystem.xml
by Damien Seguy other posts by this author
Apr 3 2001 1:23PM messages near this date
[PHP-DOC] cvs: phpdoc /fr/functions exec.xml
|
[PHP-DOC] cvs: phpdoc /fr/functions uodbc.xml
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 systme</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 lments de tableau suivants sont retourns :
+ <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>
|