cvs: phpdoc-nl /reference/filesystem/functions fclose.xml feof.xml fflush.xml fgetc.xml fgetcsv.xml fgets.xml fgetss.xml flock.xml fopen.xml
fpassthru.xml fputs.xml fread.xml fscanf.xml fseek.xml fstat.xml ftell.xml ftruncate.xml fwrite.xml parse-ini-file.xml pclose.xml popen.xml rewind.xml
tempnam.xml tmpfile.xml

From: Date: Sat, 18 Jan 2003 08:33:24 +0000
Subject: cvs: phpdoc-nl /reference/filesystem/functions fclose.xml feof.xml fflush.xml fgetc.xml fgetcsv.xml fgets.xml fgetss.xml flock.xml fopen.xml
fpassthru.xml fputs.xml fread.xml fscanf.xml fseek.xml fstat.xml ftell.xml ftruncate.xml fwrite.xml parse-ini-file.xml pclose.xml popen.xml rewind.xml
tempnam.xml tmpfile.xml
Groups: php.doc.nl 
Request: Send a blank email to doc-nl+get-233@lists.php.net to get a copy of this message
truelight Sat Jan 18 03:33:24 2003 EDT Modified files: /phpdoc-nl/reference/filesystem/functions tmpfile.xml tempnam.xml rewind.xml popen.xml pclose.xml parse-ini-file.xml fwrite.xml ftruncate.xml ftell.xml fstat.xml fseek.xml fscanf.xml fread.xml fputs.xml fpassthru.xml fopen.xml flock.xml fgetss.xml fgets.xml fgetcsv.xml fgetc.xml fflush.xml feof.xml fclose.xml Log: Sync with EN (mostly fp to handle)

Index: phpdoc-nl/reference/filesystem/functions/tmpfile.xml diff -u phpdoc-nl/reference/filesystem/functions/tmpfile.xml:1.1 phpdoc-nl/reference/filesystem/functions/tmpfile.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/tmpfile.xml:1.1 Tue Aug 13 07:31:16 2002 +++ phpdoc-nl/reference/filesystem/functions/tmpfile.xml Sat Jan 18 03:33:23 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.32 --> +<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready --> <refentry id="function.tmpfile"> <refnamediv> <refname>tmpfile</refname> @@ -9,7 +8,7 @@ <refsect1> <title>Beschrijving</title> <methodsynopsis> - <type>int</type><methodname>tmpfile</methodname> + <type>resource</type><methodname>tmpfile</methodname> <void/> </methodsynopsis> <para> @@ -62,4 +61,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/tempnam.xml diff -u phpdoc-nl/reference/filesystem/functions/tempnam.xml:1.1 phpdoc-nl/reference/filesystem/functions/tempnam.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/tempnam.xml:1.1 Tue Aug 13 07:31:16 2002 +++ phpdoc-nl/reference/filesystem/functions/tempnam.xml Sat Jan 18 03:33:23 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.tempnam"> <refnamediv> <refname>tempnam</refname> @@ -38,9 +37,9 @@ <![CDATA[ $tmpfname = tempnam ("/tmp", "FOO"); -$fp = fopen($tmpfname, "w"); -fwrite($fp, "writing to tempfile"); -fclose($fp); +$handle = fopen($tmpfname, "w"); +fwrite($handle, "writing to tempfile"); +fclose($handle); // doe hier iets @@ -84,4 +83,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/rewind.xml diff -u phpdoc-nl/reference/filesystem/functions/rewind.xml:1.1 phpdoc-nl/reference/filesystem/functions/rewind.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/rewind.xml:1.1 Tue Aug 13 07:31:16 2002 +++ phpdoc-nl/reference/filesystem/functions/rewind.xml Sat Jan 18 03:33:23 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.6 Maintainer: truelight Status: ready --> <refentry id="function.rewind"> <refnamediv> <refname>rewind</refname> @@ -10,10 +9,10 @@ <title>Beschrijving</title> <methodsynopsis> <type>int</type><methodname>rewind</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> - Zet de bestands positie indicator van <parameter>fp</parameter> terug + Zet de bestands positie indicator van <parameter>handle</parameter> terug naar het begin van de bestands stream. </para> <para> @@ -55,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/popen.xml diff -u phpdoc-nl/reference/filesystem/functions/popen.xml:1.2 phpdoc-nl/reference/filesystem/functions/popen.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/popen.xml:1.2 Fri Jan 3 13:06:46 2003 +++ phpdoc-nl/reference/filesystem/functions/popen.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: truelight Status: ready --> <refentry id="function.popen"> <refnamediv> <refname>popen</refname> @@ -8,7 +8,7 @@ <refsect1> <title>Beschrijving</title> <methodsynopsis> - <type>int</type><methodname>popen</methodname> + <type>resource</type><methodname>popen</methodname> <methodparam><type>string</type><parameter>command</parameter></methodparam> <methodparam><type>string</type><parameter>mode</parameter></methodparam> </methodsynopsis> @@ -38,7 +38,7 @@ <programlisting role="php"> <![CDATA[ <?php -$fp = popen ("/bin/ls", "r"); +$handle = popen ("/bin/ls", "r"); ?> ]]> </programlisting> @@ -57,11 +57,11 @@ error_reporting(E_ALL); /* Voeg omleiding toe zodat we stderr kunnen gebruiken. */ -$fp = popen('/path/to/spooge 2>&1', 'r'); -echo "'$fp'; " . gettype($fp) . "\n"; -$read = fread($fp, 2096); +$handle = popen('/path/to/spooge 2>&1', 'r'); +echo "'$fp'; " . gettype($handle) . "\n"; +$read = fread($handle, 2096); echo $read; -pclose($fp); +pclose($handle); ?> ]]> </programlisting> Index: phpdoc-nl/reference/filesystem/functions/pclose.xml diff -u phpdoc-nl/reference/filesystem/functions/pclose.xml:1.1 phpdoc-nl/reference/filesystem/functions/pclose.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/pclose.xml:1.1 Tue Aug 13 07:31:16 2002 +++ phpdoc-nl/reference/filesystem/functions/pclose.xml Sat Jan 18 03:33:23 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.4 Maintainer: truelight Status: ready --> <refentry id="function.pclose"> <refnamediv> <refname>pclose</refname> @@ -10,7 +9,7 @@ <title>Beschrijving</title> <methodsynopsis> <type>int</type><methodname>pclose</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> Sluit een bestands pointer naar een pipe die geopend is met Index: phpdoc-nl/reference/filesystem/functions/parse-ini-file.xml diff -u phpdoc-nl/reference/filesystem/functions/parse-ini-file.xml:1.2 phpdoc-nl/reference/filesystem/functions/parse-ini-file.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/parse-ini-file.xml:1.2 Fri Jan 3 13:06:46 2003 +++ phpdoc-nl/reference/filesystem/functions/parse-ini-file.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.7 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.10 Maintainer: truelight Status: ready --> <refentry id="function.parse-ini-file"> <refnamediv> <refname>parse_ini_file</refname> @@ -43,12 +43,6 @@ De structuur van het ini bestand is gelijk aan die van &php.ini;. </para> - <warning> - <para> - Als het ini bestand dat je probeert te verwerken een fout bevat, - dan zal PHP stoppen. - </para> - </warning> <para> <link linkend="language.constants">Constante</link> kunnen ook verwerkt worden in het ini-bestand, dus als je een constante defineert voordat @@ -151,4 +145,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/fwrite.xml diff -u phpdoc-nl/reference/filesystem/functions/fwrite.xml:1.2 phpdoc-nl/reference/filesystem/functions/fwrite.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/fwrite.xml:1.2 Fri Jan 3 12:19:12 2003 +++ phpdoc-nl/reference/filesystem/functions/fwrite.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.5 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: truelight Status: ready --> <refentry id="function.fwrite"> <refnamediv> <refname>fwrite</refname> @@ -9,13 +9,13 @@ <title>Beschrijving</title> <methodsynopsis> <type>int</type><methodname>fwrite</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>string</type><parameter>string</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> </methodsynopsis> <simpara> <function>fwrite</function> schrijft de inhoud van <parameter>string</parameter> - naar het bestand waarnaar <parameter>fp</parameter> verwijst. Als de + naar het bestand waarnaar <parameter>handle</parameter> verwijst. Als de <parameter>length</parameter> parameter gegeven is, stopt het schrijven als <parameter>length</parameter> bytes zijn geschreven of als het einde van <parameter>string</parameter> is bereikt, welke @@ -54,20 +54,20 @@ // In ons voorbeeld openen we $filename in 'toevoeg' modus. // De bestands pointer is aan het einde van het bestand // en daar gaat $somecontent naar toe als we het fwrite()'en. - if (!$fp = fopen($filename, 'a')) { + if (!$handle = fopen($filename, 'a')) { print "Kan het bestand niet openen ($filename)"; exit; } // Schrijf $somecontent naar ons bestand dat we geopend hebben. - if (!fwrite($fp, $somecontent)) { + if (!fwrite($handle, $somecontent)) { print "Kan niet schrijven naar bestand ($filename)"; exit; } print "Succes, geschreven ($somecontent) naar bestand ($filename)"; - fclose($fp); + fclose($handle); } else { print "Het bestand $filename is niet schrijfbaar"; @@ -104,4 +104,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/ftruncate.xml diff -u phpdoc-nl/reference/filesystem/functions/ftruncate.xml:1.1 phpdoc-nl/reference/filesystem/functions/ftruncate.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/ftruncate.xml:1.1 Tue Aug 13 07:31:16 2002 +++ phpdoc-nl/reference/filesystem/functions/ftruncate.xml Sat Jan 18 03:33:23 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.14 --> +<!-- EN-Revision: 1.4 Maintainer: truelight Status: ready --> <refentry id="function.ftruncate"> <refnamediv> <refname>ftruncate</refname> @@ -9,12 +8,12 @@ <refsect1> <title>Beschrijving</title> <methodsynopsis> - <type>int</type><methodname>ftruncate</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <type>bool</type><methodname>ftruncate</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>size</parameter></methodparam> </methodsynopsis> <para> - Neemt de bestands pointer <parameter>fp</parameter> en kapt de file + Neemt de bestands pointer <parameter>handle</parameter> en kapt de file af tot de lengte aangegeven in <parameter>size</parameter>. Deze functie geeft &true; terug als het goed is gegaan en &false; bij een fout. </para> @@ -40,4 +39,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/ftell.xml diff -u phpdoc-nl/reference/filesystem/functions/ftell.xml:1.1 phpdoc-nl/reference/filesystem/functions/ftell.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/ftell.xml:1.1 Tue Aug 13 07:31:16 2002 +++ phpdoc-nl/reference/filesystem/functions/ftell.xml Sat Jan 18 03:33:23 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.5 Maintainer: truelight Status: ready --> <refentry id="function.ftell"> <refnamediv> <refname>ftell</refname> @@ -10,10 +9,10 @@ <title>Beschrijving</title> <methodsynopsis> <type>int</type><methodname>ftell</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> - Geeft de positie in de bestandspointer <parameter>fp</parameter> terug. + Geeft de positie in de bestandspointer <parameter>handle</parameter> terug. </para> <para> Als er een fout optreed, geeft hij &false; terug. @@ -49,4 +48,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/fstat.xml diff -u phpdoc-nl/reference/filesystem/functions/fstat.xml:1.1 phpdoc-nl/reference/filesystem/functions/fstat.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/fstat.xml:1.1 Tue Aug 13 07:31:16 2002 +++ phpdoc-nl/reference/filesystem/functions/fstat.xml Sat Jan 18 03:33:23 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.24 --> +<!-- EN-Revision: 1.5 Maintainer: truelight Status: ready --> <refentry id="function.fstat"> <refnamediv> <refname>fstat</refname> @@ -10,11 +9,11 @@ <title>Beschrijving</title> <methodsynopsis> <type>array</type><methodname>fstat</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> Verzameld de statestieken van een bestand geopend door - de bestandspointer <parameter>fp</parameter>. Deze functie + de bestandspointer <parameter>handle</parameter>. Deze functie is gelijkend aan de <function>stat</function> functie, behalve dat hij werkt met een open bestands pointer in plaats van een bestandsnaam. @@ -65,4 +64,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/fseek.xml diff -u phpdoc-nl/reference/filesystem/functions/fseek.xml:1.1 phpdoc-nl/reference/filesystem/functions/fseek.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/fseek.xml:1.1 Tue Aug 13 07:31:16 2002 +++ phpdoc-nl/reference/filesystem/functions/fseek.xml Sat Jan 18 03:33:23 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.4 Maintainer: truelight Status: ready --> <refentry id="function.fseek"> <refnamediv> <refname>fseek</refname> @@ -10,12 +9,12 @@ <title>Beschrijving</title> <methodsynopsis> <type>int</type><methodname>fseek</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>offset</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>whence</parameter></methodparam> </methodsynopsis> <para> - Zet de positie in het bestand waar <parameter>fp</parameter> + Zet de positie in het bestand waar <parameter>handle</parameter> naar verwijst. De nieuwe positie, gemeten in bytes vanaf het begin van het bestand, kan verkregen worden door <parameter>offset</parameter> bij de positie te tellen aangegeven in <parameter>whence</parameter>, van wie Index: phpdoc-nl/reference/filesystem/functions/fscanf.xml diff -u phpdoc-nl/reference/filesystem/functions/fscanf.xml:1.2 phpdoc-nl/reference/filesystem/functions/fscanf.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/fscanf.xml:1.2 Fri Jan 3 12:19:12 2003 +++ phpdoc-nl/reference/filesystem/functions/fscanf.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.5 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: truelight Status: ready --> <refentry id="function.fscanf"> <refnamediv> <refname>fscanf</refname> @@ -9,7 +9,7 @@ <title>Beschrijving</title> <methodsynopsis> <type>mixed</type><methodname>fscanf</methodname> - <methodparam><type>int</type><parameter>handle</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>string</type><parameter>format</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>var1</parameter></methodparam> </methodsynopsis> @@ -34,12 +34,12 @@ <title><function>fscanf</function> voorbeeld</title> <programlisting role="php"> <![CDATA[ -$fp = fopen ("users.txt","r"); -while ($userinfo = fscanf ($fp, "%s\t%s\t%s\n")) { +$handle = fopen ("users.txt","r"); +while ($userinfo = fscanf ($handle, "%s\t%s\t%s\n")) { list ($name, $profession, $countrycode) = $userinfo; //... doe iets met deze waardes } -fclose($fp); +fclose($handle); ]]> </programlisting> </example> Index: phpdoc-nl/reference/filesystem/functions/fread.xml diff -u phpdoc-nl/reference/filesystem/functions/fread.xml:1.2 phpdoc-nl/reference/filesystem/functions/fread.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/fread.xml:1.2 Fri Jan 3 12:19:12 2003 +++ phpdoc-nl/reference/filesystem/functions/fread.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.4 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: truelight Status: ready --> <refentry id="function.fread"> <refnamediv> <refname>fread</refname> @@ -9,12 +9,12 @@ <title>Beschrijving</title> <methodsynopsis> <type>string</type><methodname>fread</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>length</parameter></methodparam> </methodsynopsis> <simpara> <function>fread</function> leest <parameter>length</parameter> bytes - van de bestands pointer waar <parameter>fp</parameter> naar verwijst. + van de bestands pointer waar <parameter>handle</parameter> naar verwijst. Het lezen stopt als <parameter>length</parameter> bytes worden gelezen of als er een EOF (einde-van-bestand) optreed, welke ook als eerste komt. </simpara> @@ -25,9 +25,9 @@ <?php // leest de inhoud van een bestand naar een string $filename = "/usr/local/something.txt"; -$fd = fopen ($filename, "r"); -$contents = fread ($fd, filesize ($filename)); -fclose ($fd); +$handle = fopen ($filename, "r"); +$contents = fread ($handle, filesize ($filename)); +fclose ($handle); ?> ]]> </programlisting> @@ -46,9 +46,9 @@ <![CDATA[ <?php $filename = "c:\\files\\somepic.gif"; -$fd = fopen ($filename, "rb"); -$contents = fread ($fd, filesize ($filename)); -fclose ($fd); +$handle = fopen ($filename, "rb"); +$contents = fread ($handle, filesize ($filename)); +fclose ($handle); ?> ]]> </programlisting> Index: phpdoc-nl/reference/filesystem/functions/fputs.xml diff -u phpdoc-nl/reference/filesystem/functions/fputs.xml:1.1 phpdoc-nl/reference/filesystem/functions/fputs.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/fputs.xml:1.1 Tue Aug 13 07:31:16 2002 +++ phpdoc-nl/reference/filesystem/functions/fputs.xml Sat Jan 18 03:33:23 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.4 Maintainer: truelight Status: ready --> <refentry id="function.fputs"> <refnamediv> <refname>fputs</refname> @@ -10,7 +9,7 @@ <title>Beschrijving</title> <methodsynopsis> <type>int</type><methodname>fputs</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>string</type><parameter>str</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> </methodsynopsis> @@ -42,4 +41,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/fpassthru.xml diff -u phpdoc-nl/reference/filesystem/functions/fpassthru.xml:1.2 phpdoc-nl/reference/filesystem/functions/fpassthru.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/fpassthru.xml:1.2 Fri Jan 3 12:19:12 2003 +++ phpdoc-nl/reference/filesystem/functions/fpassthru.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: truelight Status: ready --> <refentry id="function.fpassthru"> <refnamediv> <refname>fpassthru</refname> @@ -9,7 +9,7 @@ <title>Beschrijving</title> <methodsynopsis> <type>int</type><methodname>fpassthru</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <simpara> Leest tot EOF van de opgegeven bestands pointer vanaf de huidige positie @@ -17,7 +17,9 @@ </simpara> <simpara> Als er een fout optreedt, geeft <function>fpassthru</function> - &false; terug. + &false; terug. Anders geeft <function>fpassthru</function> + het aantal tekens terug, dat gelezen is van <parameter>handle</parameter> + en die doorgegeven zijn aan de output. </simpara> <simpara> De bestands pointer moet geldig zijn, en moet verwijzen naar @@ -27,7 +29,7 @@ de bestands pointer terug aan het begin van het bestand te zetten, als je al data naar het bestand hebt geschreven. Het bestand wordt gesloten wanneer <function>fpassthru</function> klaar is met lezen (en maakt - <parameter>fp</parameter> dus onbruikbaar). + <parameter>handle</parameter> dus onbruikbaar). </simpara> <simpara> Als je alleen de inhoud van een bestand naar de output buffer wil sturen, Index: phpdoc-nl/reference/filesystem/functions/fopen.xml diff -u phpdoc-nl/reference/filesystem/functions/fopen.xml:1.2 phpdoc-nl/reference/filesystem/functions/fopen.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/fopen.xml:1.2 Fri Jan 3 12:19:12 2003 +++ phpdoc-nl/reference/filesystem/functions/fopen.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.5 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: truelight Status: ready --> <refentry id="function.fopen"> <refnamediv> <refname>fopen</refname> @@ -8,7 +8,7 @@ <refsect1> <title>Beschrijving</title> <methodsynopsis> - <type>int</type><methodname>fopen</methodname> + <type>resource</type><methodname>fopen</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam><type>string</type><parameter>mode</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>use_include_path</parameter></methodparam> @@ -120,10 +120,10 @@ <programlisting role="php"> <![CDATA[ <?php -$fp = fopen ("/home/rasmus/file.txt", "r"); -$fp = fopen ("/home/rasmus/file.gif", "wb"); -$fp = fopen ("http://www.example.com/", "r"); -$fp = fopen ("ftp://user:password@example.com/", "w"); +$handle = fopen ("/home/rasmus/file.txt", "r"); +$handle = fopen ("/home/rasmus/file.gif", "wb"); +$handle = fopen ("http://www.example.com/", "r"); +$handle = fopen ("ftp://user:password@example.com/somefile.txt", "w"); ?> ]]> </programlisting> @@ -143,11 +143,11 @@ <![CDATA[ <?php -// $fp = fopen ("c:\data\info.txt", "r"); +// $handle = fopen ("c:\data\info.txt", "r"); // Is fout! -$fp = fopen ("c:\\data\\info.txt", "r"); -$fp = fopen ("c:/data/info.txt", "r"); +$handle = fopen ("c:\\data\\info.txt", "r"); +$handle = fopen ("c:/data/info.txt", "r"); // Zijn beide goed ?> Index: phpdoc-nl/reference/filesystem/functions/flock.xml diff -u phpdoc-nl/reference/filesystem/functions/flock.xml:1.1 phpdoc-nl/reference/filesystem/functions/flock.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/flock.xml:1.1 Tue Aug 13 07:31:17 2002 +++ phpdoc-nl/reference/filesystem/functions/flock.xml Sat Jan 18 03:33:23 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.5 Maintainer: truelight Status: ready --> <refentry id="function.flock"> <refnamediv> <refname>flock</refname> @@ -10,7 +9,7 @@ <title>Beschrijving</title> <methodsynopsis> <type>bool</type><methodname>flock</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>operation</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>&amp;wouldblock</parameter></methodparam> </methodsynopsis> @@ -21,7 +20,7 @@ van blokkeren moeten gebruiken, omdat het anders niet werkt). </simpara> <simpara> - <function>flock</function> werkt op <parameter>fp</parameter> + <function>flock</function> werkt op <parameter>handle</parameter> die naar een geopend bestand moet verwijzen. <parameter>operation</parameter> is een van de volgende waardes: </simpara> @@ -119,4 +118,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/fgetss.xml diff -u phpdoc-nl/reference/filesystem/functions/fgetss.xml:1.2 phpdoc-nl/reference/filesystem/functions/fgetss.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/fgetss.xml:1.2 Fri Jan 3 10:48:19 2003 +++ phpdoc-nl/reference/filesystem/functions/fgetss.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: truelight Status: ready --> <refentry id="function.fgetss"> <refnamediv> <refname>fgetss</refname> @@ -9,7 +9,7 @@ <title>Beschrijving</title> <methodsynopsis> <type>string</type><methodname>fgetss</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>length</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>allowable_tags</parameter></methodparam> </methodsynopsis> Index: phpdoc-nl/reference/filesystem/functions/fgets.xml diff -u phpdoc-nl/reference/filesystem/functions/fgets.xml:1.2 phpdoc-nl/reference/filesystem/functions/fgets.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/fgets.xml:1.2 Fri Jan 3 10:48:19 2003 +++ phpdoc-nl/reference/filesystem/functions/fgets.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.4 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: truelight Status: ready --> <refentry id="function.fgets"> <refnamediv> <refname>fgets</refname> @@ -9,12 +9,12 @@ <title>Beschrijving</title> <methodsynopsis> <type>string</type><methodname>fgets</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> </methodsynopsis> <para> Geeft een string terug, met een maximale lengte van <parameter>length</parameter> - 1, - gelezen uit het bestand waar de bestands pointer <parameter>fp</parameter> + gelezen uit het bestand waar de bestands pointer <parameter>handle</parameter> naar verwijst. Het lezen uit het bestand stopt als <parameter>length</parameter> - 1 bytes zijn gelezen, of als er een nieuwe regel begint (die wordt meegegeven aan de string), of als er een EOF optreed (welke dan ook het eerste komt). Als <parameter>length</parameter> niet wordt @@ -42,12 +42,12 @@ <title>Een bestand regel voor regel lezen</title> <programlisting role="php"> <![CDATA[ -$fd = fopen ("/tmp/inputfile.txt", "r"); -while (!feof ($fd)) { - $buffer = fgets($fd, 4096); +$handle = fopen ("/tmp/inputfile.txt", "r"); +while (!feof ($handle)) { + $buffer = fgets($handle, 4096); echo $buffer; } -fclose ($fd); +fclose ($handle); ]]> </programlisting> </example> Index: phpdoc-nl/reference/filesystem/functions/fgetcsv.xml diff -u phpdoc-nl/reference/filesystem/functions/fgetcsv.xml:1.2 phpdoc-nl/reference/filesystem/functions/fgetcsv.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/fgetcsv.xml:1.2 Fri Jan 3 09:10:23 2003 +++ phpdoc-nl/reference/filesystem/functions/fgetcsv.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.5 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: truelight Status: ready --> <refentry id="function.fgetcsv"> <refnamediv> <refname>fgetcsv</refname> @@ -9,7 +9,7 @@ <title>Beschrijving</title> <methodsynopsis> <type>array</type><methodname>fgetcsv</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>length</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>delimiter</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>enclosure</parameter></methodparam> @@ -30,7 +30,7 @@ </simpara> </note> <simpara> - De <parameter>fp</parameter> parameter moet geldig zijn, en moet verwijzen naar + De <parameter>handle</parameter> parameter moet geldig zijn, en moet verwijzen naar een bestand dat succesvol geopend is door <function>fopen</function>, <function>popen</function> of <function>fsockopen</function>. </simpara> Index: phpdoc-nl/reference/filesystem/functions/fgetc.xml diff -u phpdoc-nl/reference/filesystem/functions/fgetc.xml:1.1 phpdoc-nl/reference/filesystem/functions/fgetc.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/fgetc.xml:1.1 Tue Aug 13 07:31:17 2002 +++ phpdoc-nl/reference/filesystem/functions/fgetc.xml Sat Jan 18 03:33:23 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.5 Maintainer: truelight Status: ready --> <refentry id="function.fgetc"> <refnamediv> <refname>fgetc</refname> @@ -10,11 +9,11 @@ <title>Beschrijving</title> <methodsynopsis> <type>string</type><methodname>fgetc</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> Geeft een string terug met één teken, die gelezen is uit de - bestands pointer <parameter>fp</parameter>. Geeft &false; bij EOF. + bestands pointer <parameter>handle</parameter>. Geeft &false; bij EOF. </para> <para> De bestands pointer moet geldig zijn, en moet verwijzen naar @@ -48,4 +47,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/fflush.xml diff -u phpdoc-nl/reference/filesystem/functions/fflush.xml:1.1 phpdoc-nl/reference/filesystem/functions/fflush.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/fflush.xml:1.1 Tue Aug 13 07:31:17 2002 +++ phpdoc-nl/reference/filesystem/functions/fflush.xml Sat Jan 18 03:33:23 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.43 --> +<!-- EN-Revision: 1.5 Maintainer: truelight Status: ready --> <refentry id="function.fflush"> <refnamediv> <refname>fflush</refname> @@ -9,12 +8,12 @@ <refsect1> <title>Beschrijving</title> <methodsynopsis> - <type>int</type><methodname>fflush</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <type>bool</type><methodname>fflush</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> Deze functie forseert om alle gebufferde output te schrijven - naar het bestand waar de bestands pointer <parameter>fp</parameter> + naar het bestand waar de bestands pointer <parameter>handle</parameter> naar verwijst. Geeft &true; terug als alles goed ging, anders &false;. </para> <para> @@ -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 +--> Index: phpdoc-nl/reference/filesystem/functions/feof.xml diff -u phpdoc-nl/reference/filesystem/functions/feof.xml:1.1 phpdoc-nl/reference/filesystem/functions/feof.xml:1.2 --- phpdoc-nl/reference/filesystem/functions/feof.xml:1.1 Tue Aug 13 07:31:17 2002 +++ phpdoc-nl/reference/filesystem/functions/feof.xml Sat Jan 18 03:33:23 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.4 Maintainer: truelight Status: ready --> <refentry id="function.feof"> <refnamediv> <refname>feof</refname> @@ -9,8 +8,8 @@ <refsect1> <title>Beschrijving</title> <methodsynopsis> - <type>int</type><methodname>feof</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <type>bool</type><methodname>feof</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> Geeft &true; terug als de bestands pointer op EOF (einde-van-bestand) is @@ -43,4 +42,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/fclose.xml diff -u phpdoc-nl/reference/filesystem/functions/fclose.xml:1.2 phpdoc-nl/reference/filesystem/functions/fclose.xml:1.3 --- phpdoc-nl/reference/filesystem/functions/fclose.xml:1.2 Fri Jan 3 09:10:23 2003 +++ phpdoc-nl/reference/filesystem/functions/fclose.xml Sat Jan 18 03:33:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.3 Maintainer: truelight Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: truelight Status: ready --> <refentry id="function.fclose"> <refnamediv> <refname>fclose</refname> @@ -9,10 +9,10 @@ <title>Beschrijving</title> <methodsynopsis> <type>bool</type><methodname>fclose</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> - Het bestand waarnaar <parameter>fp</parameter> verwijst wordt gesloten. + Het bestand waarnaar <parameter>handle</parameter> verwijst wordt gesloten. </para> <para> &return.success; @@ -29,7 +29,7 @@ <![CDATA[ <?php - $fp = fopen('somefile.txt', 'r'); + $handle= fopen('somefile.txt', 'r'); fclose($fp);
« previous php.doc.nl (#233) next »