cvs: phpdoc-nl /reference/filesystem/functions glob.xml is-executable.xml parse-ini-file.xml pathinfo.xml popen.xml readfile.xml set-file-buffer.xml touch.xml umask.xml
[email protected] ("Patric Stout")
| Newsgroups | php.doc.nl |
|---|---|
| Message-ID | <cvstruelight1041617206@cvsserver> |
truelight Fri Jan 3 13:06:46 2003 EDT
Modified files:
/phpdoc-nl/reference/filesystem/functions glob.xml
is-executable.xml
parse-ini-file.xml
pathinfo.xml popen.xml
readfile.xml
set-file-buffer.xml
touch.xml umask.xml
Log:
Sync with EN
truelight-20030103130646.txt
(text/plain, 17.7 KB)
Index: phpdoc-nl/reference/filesystem/functions/glob.xml
diff -u phpdoc-nl/reference/filesystem/functions/glob.xml:1.1 phpdoc-nl/reference/filesystem/functions/glob.xml:1.2
--- phpdoc-nl/reference/filesystem/functions/glob.xml:1.1 Tue Aug 13 07:31:16 2002
+++ phpdoc-nl/reference/filesystem/functions/glob.xml Fri Jan 3 13:06:46 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready -->
+<!-- EN-Revision: 1.6 Maintainer: truelight Status: ready -->
<refentry id="function.glob">
<refnamediv>
<refname>glob</refname>
@@ -21,38 +21,68 @@
Geeft een array met overeenkomende bestanden/paden terug of &false; als er een fout
optreedt.
</para>
- <note>
- <para>
- Deze functie is uitgeschakeld in <link
- linkend="ini.safe-mode">safe mode</link> en geeft daarom altijd
- &false; terug in <link linkend="ini.safe-mode">safe mode</link>.
+ <para>
+ Geldige <parameter>flags</parameter>:
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ <constant>GLOB_MARK</constant> - Voegt een slash toe aan iedere item dat wordt teruggegeven.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <constant>GLOB_NOSORT</constant> - Geeft de bestanden weer zoals ze in de directorie voorkomen (geen sortering)
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <constant>GLOB_NOCHECK</constant> - Geeft het zoekpatroon terug als er geen bestanden zijn gevonden
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <constant>GLOB_NOESCAPE</constant> - Backslashes quoten niet meta-tekens
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <constant>GLOB_BRACE</constant> - Zorgt ervoor dat {a,b,c} zowel 'a', 'b' als 'c' gebruikt als patroon.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <constant>GLOB_ONLYDIR</constant> - Geeft alleen de directories terug die overeenkomen met het patroon
+ </simpara>
+ </listitem>
+ </itemizedlist>
</para>
- </note>
- <example>
- <title>
- <function>glob</function> kan goed en makkelijk
- <function>opendir</function> en aanverwanten vervangen.
- </title>
- <programlisting role="php">
+ <para>
+ <example>
+ <title>
+ <function>Glob</function> kan gemakkelijker <function>opendir</function>
+ en vrienden vervangen.
+ </title>
+ <programlisting role="php">
<![CDATA[
+<?php
foreach (glob("*.txt") as $filename) {
echo "$filename size " . filesize($filename) . "\n";
}
-]]>
- </programlisting>
- <para>
- Dit kan het volgende resultaat geven:
- </para>
- <screen>
+/* De output zal er ongeveer zo zien:
funclist.txt size 44686
funcsummary.txt size 267625
quickref.txt size 137820
- </screen>
- </example>
+*/
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
<para>
Zie ook <function>opendir</function>,
- <function>readdir</function> en
- <function>closedir</function>.
+ <function>readdir</function>,
+ <function>closedir</function> en
+ <function>fnmatch</function>.
</para>
</refsect1>
</refentry>
@@ -76,4 +106,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->
Index: phpdoc-nl/reference/filesystem/functions/is-executable.xml
diff -u phpdoc-nl/reference/filesystem/functions/is-executable.xml:1.1 phpdoc-nl/reference/filesystem/functions/is-executable.xml:1.2
--- phpdoc-nl/reference/filesystem/functions/is-executable.xml:1.1 Tue Aug 13 07:31:16 2002
+++ phpdoc-nl/reference/filesystem/functions/is-executable.xml Fri Jan 3 13:06:46 2003
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: truelight Status: ready -->
-<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
+<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready -->
<refentry id="function.is-executable">
<refnamediv>
<refname>is_executable</refname>
@@ -24,6 +23,11 @@
linkend="features.remote-files">remote bestanden</link>; het bestand
dat opgevraagd wordt moet toegankelijk zijn via de server's bestands systeem.
</simpara>
+ <note>
+ <simpara>
+ Deze functie werkt <emphasis role="strong">niet</emphasis> onder Win32.
+ </simpara>
+ </note>
<para>
Zie ook <function>is_file</function> en
<function>is_link</function>.
Index: phpdoc-nl/reference/filesystem/functions/parse-ini-file.xml
diff -u phpdoc-nl/reference/filesystem/functions/parse-ini-file.xml:1.1 phpdoc-nl/reference/filesystem/functions/parse-ini-file.xml:1.2
--- phpdoc-nl/reference/filesystem/functions/parse-ini-file.xml:1.1 Tue Aug 13 07:31:16 2002
+++ phpdoc-nl/reference/filesystem/functions/parse-ini-file.xml Fri Jan 3 13:06:46 2003
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.6 Maintainer: truelight Status: ready -->
-<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.87 -->
+<!-- EN-Revision: 1.7 Maintainer: truelight Status: ready -->
<refentry id="function.parse-ini-file">
<refnamediv>
<refname>parse_ini_file</refname>
@@ -51,8 +50,14 @@
</para>
</warning>
<para>
+ <link linkend="language.constants">Constante</link> kunnen ook verwerkt
+ worden in het ini-bestand, dus als je een constante defineert voordat
+ je <function>parse_ini_file</function> runt, wordt hij verwerkt
+ in het restultaat. Alleen ini-waardes worden verwerkt. Bijvoorbeeld:
+ </para>
+ <para>
<example>
- <title>Inhoud van sample.ini</title>
+ <title>Inhoud van <filename>sample.ini</filename></title>
<programlisting>
<![CDATA[
; Dit is een voorbeeld configuratie bestand
@@ -61,6 +66,7 @@
[first_section]
one = 1
five = 5
+animal = BIRD
[second_section]
path = /usr/local/bin
@@ -75,6 +81,7 @@
<programlisting>
<![CDATA[
<?php
+define ('BIRD', 'Dodo bird');
// Verwerken zonder secties
$ini_array = parse_ini_file("sample.ini");
@@ -98,6 +105,7 @@
(
[one] => 1
[five] => 5
+ [animal] => Dodo bird
[path] => /usr/local/bin
[URL] => http://www.example.com/~username
)
@@ -107,6 +115,7 @@
(
[one] => 1
[five] => 5
+ [animal] = Dodo bird
)
[second_section] => Array
Index: phpdoc-nl/reference/filesystem/functions/pathinfo.xml
diff -u phpdoc-nl/reference/filesystem/functions/pathinfo.xml:1.1 phpdoc-nl/reference/filesystem/functions/pathinfo.xml:1.2
--- phpdoc-nl/reference/filesystem/functions/pathinfo.xml:1.1 Tue Aug 13 07:31:16 2002
+++ phpdoc-nl/reference/filesystem/functions/pathinfo.xml Fri Jan 3 13:06:46 2003
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: truelight Status: ready -->
-<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.61 -->
+<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready -->
<refentry id="function.pathinfo">
<refnamediv>
<refname>pathinfo</refname>
@@ -49,6 +48,13 @@
</programlisting>
</informalexample>
</para>
+ <note>
+ <para>
+ Voor informatie over het opvragen van het huidige pad informatie,
+ lees de sectie op <link linkend="language.variables.predefined">
+ voorgedefineerde gereserveerde variabelen</link>.
+ </para>
+ </note>
<para>
Zie ook <function>dirname</function>,
<function>basename</function>, <function>parse_url</function>
@@ -76,4 +82,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->
Index: phpdoc-nl/reference/filesystem/functions/popen.xml
diff -u phpdoc-nl/reference/filesystem/functions/popen.xml:1.1 phpdoc-nl/reference/filesystem/functions/popen.xml:1.2
--- phpdoc-nl/reference/filesystem/functions/popen.xml:1.1 Tue Aug 13 07:31:16 2002
+++ phpdoc-nl/reference/filesystem/functions/popen.xml Fri Jan 3 13:06:46 2003
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: truelight Status: ready -->
-<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
+<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready -->
<refentry id="function.popen">
<refnamediv>
<refname>popen</refname>
@@ -28,11 +27,19 @@
<para>
Als er een fout optreed, geeft hij &false; terug.
</para>
+ <note>
+ <para>
+ Als je zoekt naar twee-wegs ondersteuning (two-way), gebruik
+ <function>proc_open</function>.
+ </para>
+ </note>
<para>
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
$fp = popen ("/bin/ls", "r");
+?>
]]>
</programlisting>
</informalexample>
@@ -62,7 +69,8 @@
</para>
</note>
<para>
- Zie ook <function>pclose</function>.
+ Zie ook <function>pclose</function>, <function>fopen</function>,
+ en <function>proc_open</function>.
</para>
</refsect1>
</refentry>
@@ -86,4 +94,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->
Index: phpdoc-nl/reference/filesystem/functions/readfile.xml
diff -u phpdoc-nl/reference/filesystem/functions/readfile.xml:1.1 phpdoc-nl/reference/filesystem/functions/readfile.xml:1.2
--- phpdoc-nl/reference/filesystem/functions/readfile.xml:1.1 Tue Aug 13 07:31:16 2002
+++ phpdoc-nl/reference/filesystem/functions/readfile.xml Fri Jan 3 13:06:46 2003
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: truelight Status: ready -->
-<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
+<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready -->
<refentry id="function.readfile">
<refnamediv>
<refname>readfile</refname>
@@ -14,36 +13,14 @@
<methodparam choice="opt"><type>int</type><parameter>use_include_path</parameter></methodparam>
</methodsynopsis>
<para>
- Leest een bestand en schrijft het naar de standaard output.
+ Leest een bestand en schrijft het naar de output buffer.
</para>
<para>
Geeft het aantal bytes gelezen van het bestand terug. Als er een fout
is opgetreden, geeft hij &false; en, behalve als de functie aangeroepen is
als @readfile, wordt er een foutmelding weergegeven.
</para>
- <para>
- Als <parameter>filename</parameter> begint met "http://"
- (niet hoofdletter gevoelig), wordt er een HTTP 1.0 connectie
- geopend met de aangegeven server en de tekst van het antwoord
- wordt geschreven naar de standaard output.
- </para>
- <para>
- Eerdere versies dan PHP 4.0.5 behandelen geen HTTP redirects. Om deze reden
- moeten folder URL's eindigen op een slash (http://www.voorbeeld.com/test/ ipv
- http://www.voorbeeld.com/test)
- </para>
- <para>
- Als <parameter>filename</parameter> begint met "ftp://"
- (niet hoofdletter gevoelig), wordt er een ftp connectie
- gopend met de aangegeven server en het opgevraagd bestand wordt
- geschreven naar de standaard output. Als de server
- geen passive mode ondersteunt, zal dit niet lukken.
- </para>
- <para>
- Als <parameter>filename</parameter> begint met geen van deze
- string, dan zal het bestand van het bestands systeem geopend worden
- en zijn inhoud naar de standaard output worden geschreven.
- </para>
+ &tip.fopen-wrapper;
<para>
De optionele derde <parameter>use_include_path</parameter> paramater
kan op '1' of &true; gezet worden; voor als je ook wilt zoeken voor het bestand in
@@ -52,8 +29,8 @@
<para>
Zie ook <function>fpassthru</function>,
<function>file</function>, <function>fopen</function>,
- <function>include</function>, <function>require</function> en
- <function>virtual</function>.
+ <function>include</function>, <function>require</function>,
+ <function>virtual</function> en <xref linkend="wrappers"/>.
</para>
</refsect1>
</refentry>
@@ -77,4 +54,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->
Index: phpdoc-nl/reference/filesystem/functions/set-file-buffer.xml
diff -u phpdoc-nl/reference/filesystem/functions/set-file-buffer.xml:1.1 phpdoc-nl/reference/filesystem/functions/set-file-buffer.xml:1.2
--- phpdoc-nl/reference/filesystem/functions/set-file-buffer.xml:1.1 Tue Aug 13 07:31:16 2002
+++ phpdoc-nl/reference/filesystem/functions/set-file-buffer.xml Fri Jan 3 13:06:46 2003
@@ -1,55 +1,15 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: truelight Status: ready -->
-<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
+<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready -->
<refentry id="function.set-file-buffer">
<refnamediv>
<refname>set_file_buffer</refname>
- <refpurpose>Zet de buffer grootte van een gegeven bestands pointer</refpurpose>
+ <refpurpose>Alias van <function>stream_set_write_buffer</function></refpurpose>
</refnamediv>
<refsect1>
<title>Beschrijving</title>
- <methodsynopsis>
- <type>int</type><methodname>set_file_buffer</methodname>
- <methodparam><type>int</type><parameter>fp</parameter></methodparam>
- <methodparam><type>int</type><parameter>buffer</parameter></methodparam>
- </methodsynopsis>
<simpara>
- Data die geschreven wordt met <function>fwrite</function> wordt
- normaal gebufferd per 8K. Dit betekent dat als twee processen een bestand
- tegelijk willen beschrijven, dat elke na 8K data de andere toestaat te
- schrijven. <function>set_file_buffer</function> veranderd de grootte
- van die buffer naar <parameter>buffer</parameter> bytes voor het bestand
- waar de bestands pointer <parameter>fp</parameter> naar verwijst.
- Als <parameter>buffer</parameter> op 0 wordt gezet, wordt er ongebufferd
- geschreven. Dit zorgt ervoor dat <function>fwrite</function>
- volledig klaar is, voordat een ander proces wordt toegestaan
- datzelfde bestand te beschrijven.
- </simpara>
- <simpara>
- Deze functie geeft 0 terug als het goed is gegaan, of EOF
- als er niet kan worden voldaan aan de vraag.
- </simpara>
- <para>
- Het volgende voorbeeld laat zien hoe je
- <function>set_file_buffer</function> moet gebruiken
- om een ongebufferde stream te maken.
- <example>
- <title><function>set_file_buffer</function> voorbeeld</title>
- <programlisting role="php">
-<![CDATA[
-$fp=fopen($file, "w");
-if($fp){
- set_file_buffer($fp, 0);
- fputs($fp, $output);
- fclose($fp);
-}
-]]>
- </programlisting>
- </example>
- </para>
-
- <simpara>
- Zie ook <function>fopen</function> en <function>fwrite</function>.
+ Deze functie is een alias voor
+ <function>stream_set_write_buffer</function>.
</simpara>
</refsect1>
</refentry>
@@ -73,4 +33,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->
Index: phpdoc-nl/reference/filesystem/functions/touch.xml
diff -u phpdoc-nl/reference/filesystem/functions/touch.xml:1.1 phpdoc-nl/reference/filesystem/functions/touch.xml:1.2
--- phpdoc-nl/reference/filesystem/functions/touch.xml:1.1 Tue Aug 13 07:31:16 2002
+++ phpdoc-nl/reference/filesystem/functions/touch.xml Fri Jan 3 13:06:46 2003
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready -->
-<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
+<!-- EN-Revision: 1.4 Maintainer: truelight Status: ready -->
<refentry id="function.touch">
<refnamediv>
<refname>touch</refname>
@@ -20,7 +19,10 @@
parameter niet is meegegeven, dan wordt de huidige tijd gebrukt.
Dit is hetzelfde als wat utem (soms utimes genoemd) doet. Als
de derde optionele <parameter>atime</parameter> parameter meegegeven is,
- dan wordt de laatste toegangs tijd van het bestand ook gewijzigd.
+ dan wordt de laatste toegangs tijd van het bestand ook gewijzigd in de waarde
+ van <parameter>atime</parameter>.
+ Let wel op dat de laatste-toegangstijd altijd wordt gewijzigd, ongeacht het aantal parameters
+ dat wordt meegegven.
</para>
<para>
Als het bestand niet bestaat, maakt hij het aan.
@@ -63,4 +65,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->
Index: phpdoc-nl/reference/filesystem/functions/umask.xml
diff -u phpdoc-nl/reference/filesystem/functions/umask.xml:1.2 phpdoc-nl/reference/filesystem/functions/umask.xml:1.3
--- phpdoc-nl/reference/filesystem/functions/umask.xml:1.2 Wed Aug 14 04:41:09 2002
+++ phpdoc-nl/reference/filesystem/functions/umask.xml Fri Jan 3 13:06:46 2003
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready -->
-<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
+<!-- EN-Revision: 1.4 Maintainer: truelight Status: ready -->
<refentry id="function.umask">
<refnamediv>
<refname>umask</refname>
@@ -10,7 +9,7 @@
<title>Beschrijving</title>
<methodsynopsis>
<type>int</type><methodname>umask</methodname>
- <methodparam><type>int</type><parameter>mask</parameter></methodparam>
+ <methodparam choice='opt'><type>int</type><parameter>mask</parameter></methodparam>
</methodsynopsis>
<para>
<function>umask</function> verandert de umask van PHP naar <parameter>mask</parameter> & 0777
@@ -44,4 +43,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->