mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-28 02:42:09 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@351113 c90b9560-bf6c-de11-be94-00142212c4b1
144 lines
3.6 KiB
XML
144 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: cdaea0421544885f02ff3d36bd203dc01b78299e Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
|
|
<refentry xml:id="wrappers.glob" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion">
|
|
<refnamediv>
|
|
<refname>glob://</refname>
|
|
<refpurpose>Trouve des noms de fichiers correspondant à un masque donné</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description"><!-- {{{ -->
|
|
&reftitle.description;
|
|
<simpara>
|
|
Le gestionnaire de flux <filename>glob:</filename>.
|
|
</simpara>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="usage"> <!-- {{{ -->
|
|
&reftitle.usage;
|
|
<itemizedlist>
|
|
<listitem><simpara><filename>glob://</filename></simpara></listitem>
|
|
</itemizedlist>
|
|
</refsect1> <!-- }}} -->
|
|
|
|
<refsect1 role="options"><!-- {{{ -->
|
|
&reftitle.options;
|
|
<para>
|
|
<table>
|
|
<title>Résumé du gestionnaire</title>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>Attribut</entry>
|
|
<entry>Supporté</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>Restreint par <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Restreint par <link linkend="ini.allow-url-include">allow_url_include</link></entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Autorise la lecture</entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Autorise l'écriture</entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Autorise l'ajout</entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Autorise la lecture et l'écriture simultanément</entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Support de la fonction <function>stat</function></entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Support de la fonction <function>unlink</function></entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Support de la fonction <function>rename</function></entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Support de la fonction <function>mkdir</function></entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Support de la fonction <function>rmdir</function></entry>
|
|
<entry>Non</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</refsect1> <!-- }}} -->
|
|
|
|
<refsect1 role="examples"><!-- {{{ -->
|
|
&reftitle.examples;
|
|
<example>
|
|
<title>Utilisation simple</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// Boucle sur tous les fichiers *.php du dossier ext/spl/examples/ et
|
|
// affiche le nom du fichier ainsi que sa taille
|
|
$it = new DirectoryIterator("glob://ext/spl/examples/*.php");
|
|
foreach($it as $f) {
|
|
printf("%s: %.1FK\n", $f->getFilename(), $f->getSize()/1024);
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
<screen>
|
|
<![CDATA[
|
|
tree.php: 1.0K
|
|
findregex.php: 0.6K
|
|
findfile.php: 0.7K
|
|
dba_dump.php: 0.9K
|
|
nocvsdir.php: 1.1K
|
|
phar_from_dir.php: 1.0K
|
|
ini_groups.php: 0.9K
|
|
directorytree.php: 0.9K
|
|
dba_array.php: 1.1K
|
|
class_tree.php: 1.8K
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</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:"~/.phpdoc/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
|
|
-->
|