derick Fri Apr 6 08:53:52 2001 EDT
Modified files:
/phpdoc/nl bookinfo.xml
/phpdoc/nl/chapters security.xml
/phpdoc/nl/language basic-syntax.xml control-structures.xml
Log:
- Spelling errors
- Some translation of control-structures
Index: phpdoc/nl/bookinfo.xml
diff -u phpdoc/nl/bookinfo.xml:1.6 phpdoc/nl/bookinfo.xml:1.7
--- phpdoc/nl/bookinfo.xml:1.6 Sun Feb 25 07:22:37 2001
+++ phpdoc/nl/bookinfo.xml Fri Apr 6 08:53:52 2001
@@ -44,6 +44,9 @@
<authorgroup id="editors">
<editor>
+ <firstname>Leendert</firstname><surname>Brouwer</surname>
+ </editor>
+ <editor>
<firstname>Mathieu</firstname><surname>Kooiman</surname>
</editor>
<editor>
Index: phpdoc/nl/chapters/security.xml
diff -u phpdoc/nl/chapters/security.xml:1.8 phpdoc/nl/chapters/security.xml:1.9
--- phpdoc/nl/chapters/security.xml:1.8 Fri Nov 10 11:34:47 2000
+++ phpdoc/nl/chapters/security.xml Fri Apr 6 08:53:52 2001
@@ -80,7 +80,7 @@
De bestandslocatie in de URL achter de PHP binary naam,
<filename role="uri">/geheim/doc.html</filename> wordt
normaal gebruikt om de naam van het uit te voeren bestand
- aan te geven dat moet worden uitgeveord door het
+ aan te geven dat moet worden uitgevoerd door het
<acronym>CGI</acronym> programma.
Normaal gezien wordt een configuratie optie (Apache: Action)
gebruikt om zulke requests als
@@ -419,7 +419,7 @@
<simpara>
Een standaard aanval taktiek is om het systeem te voorzien van
ongeldige gegevens, en zo te controleren op fouten en de context
- waarin foutmeldingen worden teruggegeven. Dit voorzier de aanvaller
+ waarin foutmeldingen worden teruggegeven. Dit voorziet de aanvaller
van informatie over de server waarmee deze mogelijke zwakheden kan
vinden.
</simpara>
@@ -440,7 +440,7 @@
<simpara>
Een functie foutmelding kan een indictatie zijn dat een systeem een
specifieke database engine draait, of kan aanwijzingen geven hoe de
- website is geprogrammed of is ontworpen. Dit geeeft meer aanleiding tot
+ website is geprogrammed of is ontworpen. Dit geeft meer aanleiding tot
een verder onderzoek naar openstaande database porten, of om te kijken
naar speicifieke bugs in een website. Door verschillende stukken van
"slechte" gegevens te versturen, kan hij de manier van authenticatie
Index: phpdoc/nl/language/basic-syntax.xml
diff -u phpdoc/nl/language/basic-syntax.xml:1.5 phpdoc/nl/language/basic-syntax.xml:1.6
--- phpdoc/nl/language/basic-syntax.xml:1.5 Mon Dec 4 00:10:30 2000
+++ phpdoc/nl/language/basic-syntax.xml Fri Apr 6 08:53:52 2001
@@ -88,7 +88,7 @@
</informalexample></para>
<simpara>
- De "een-regel" commentaar stijlen comentarisren tot het einde
+ De "een-regel" commentaar stijlen commentariseren tot het einde
van de lijn, of tot het einde van een blok PHP code.</simpara>
<informalexample><programlisting>
<h1>Dit is een <?# echo "simple";?> voorbeeld.</h1>
Index: phpdoc/nl/language/control-structures.xml
diff -u phpdoc/nl/language/control-structures.xml:1.9
phpdoc/nl/language/control-structures.xml:1.10
--- phpdoc/nl/language/control-structures.xml:1.9 Mon Nov 20 10:20:32 2000
+++ phpdoc/nl/language/control-structures.xml Fri Apr 6 08:53:52 2001
@@ -859,92 +859,96 @@
</informalexample>
</para>
<simpara>
- Als een bestand is ge<function>require</function>ed, the code it
- contains inherits the variable scope of the line on which the
- <function>require</function> occurs. Any variables available at
- that line in the calling file will be available within the called
- file. If the <function>require</function> occurs inside a
- function within the calling file, then all of the code contained
- in the called file will behave as though it had been defined
- inside that function.
+ Als een bestand is ge<function>require</function>ed, dan zal de
+ code de inhoud van de variabele scope overnemen zoals deze was
+ op het punt van de <function>require</function>. Alle variabelen
+ die beschikbaar waren in de aanroepende file, zullen ook beschikbaar
+ zijn de in aangeroepen file. Als de <function>require</function>
+ optreed in een functie in de aanroepende file, dan zal de code
+ die zich in het bestand dat ge-required wordt zich gedragen alsof
+ deze in de functie waarin <function>require</functie> wordt
+ aangeroepen.
</simpara>
<para>
- If the <function>require</function>ed file is called via HTTP
- using the fopen wrappers, and if the target server interprets the
- target file as PHP code, variables may be passed to the
- <function>require</function>ed file using an URL request string as
- used with HTTP GET. This is not strictly speaking the same thing
- as <function>require</function>ing the file and having it inherit
- the parent file's variable scope; the script is actually being run
- on the remote server and the result is then being included into
- the local script.
+ Als de <function>require</function>ed file wordt opgeroepen over HTTP
+ met gebruikmakend van de fopen wrappers, en als de target server dit
+ bestand kan interpreteren als PHP code, dan mogen er variabelen
+ worden meegegeven aan de <function>require</function>ed file met
+ gebruik maken als een HTTP GET regel (zie voorbeeld). Dit is niet
+ precies hetzelfde als <function>require</function>ing een bestand
+ en het laten overnemen van de variabele scope van de aanroepende
+ file. In dit geval wordt het script uitgevoerd op de remote server
+ en het resultaat van het script zla opgenomen worden in het lokale
+ script.
<informalexample>
<programlisting role="php">
-/* This example assumes that someserver is configured to parse .php
- * files and not .txt files. Also, 'works' here means that the variables
- * $varone and $vartwo are available within the require()ed file. */
+/* Dit voorbeeld gaat er van uit dat someserver is geconfigureerd om
+ * .php bestanden uit te voeren, maar .txt file niet. Ook betekent
+ * 'werkt' hier dat de variabelen $vareen en $vartwee beschikbaar
+ * zijn binnen de require()ed file. */
-/* Won't work; file.txt wasn't handled by someserver. */
+/* Werkt niet; file.txt werd niet geparsed door someserver. */
require ("http://someserver/file.txt?varone=1&vartwo=2");
-/* Won't work; looks for a file named 'file.php?varone=1&vartwo=2'
- * on the local filesystem. */
+/* Werkt niet; er wordt gekeken naar het bestand 'file.php?varone=1&vartwo=2'
+ * op het huidige bestandssysteem. */
require ("file.php?varone=1&vartwo=2");
-/* Works. */
+/* Werkt. */
require ("http://someserver/file.php?varone=1&vartwo=2");
$varone = 1;
$vartwo = 2;
-require ("file.txt"); /* Works. */
-require ("file.php"); /* Works. */
+require ("file.txt"); /* Werkt. */
+require ("file.php"); /* Werkt. */
</programlisting>
</informalexample>
</para>
<simpara>
- In PHP 3, it is possible to execute a <literal>return</literal>
- statement inside a <function>require</function>ed file, as long as
- that statement occurs in the global scope of the
- <function>require</function>ed file. It may not occur within any
- block (meaning inside braces ({}). In PHP 4, however, this ability
- has been discontinued. If you need this functionality, see
- <function>include</function>.
+ In PHP 3 is het mogelijk een <literal>return</literal> waarde terug
+ te geven vanuit een <function>require</function>ed bestand, zo lang
+ dat statement optreed binnen de globale scope van het
+ <function>require</function>ed bestand. Het mag niet optreden binnen
+ een blok (d.w.z. binnen accolades ({}). In PHP 4, is deze mogelijkheid
+ echter niet meer aanwezig. Als je dit toch wilt, zie dan de
+ <function>include</function> functie.
</simpara>
<simpara>
- See also <function>include</function>, <function>require_once</function>,
+ Zie ook <function>include</function>, <function>require_once</function>,
<function>include_once</function>, <function>readfile</function>,
- and <function>virtual</function>.
+ en <function>virtual</function>.
</simpara>
</sect1>
<sect1 id="function.include">
<title><function>include</function></title>
<simpara>
- The <function>include</function> statement includes and evaluates
- the specified file.
+ Het <function>include</function> statement voegt het aangegeven
+ bestand in en evalueert deze.
</simpara>
<simpara>
- If "URL fopen wrappers" are enabled in PHP (which they are in the
- default configuration), you can specify the file to be
- <function>include</function>ed using an URL instead of a local
- pathname. See <link linkend="features.remote-files">Remote
- files</link> and <function>fopen</function> for more information.
- </simpara>
- <simpara>
- An important note about how this works is that when a file is
- <function>include</function>ed or <function>require</function>ed,
- parsing drops out of PHP mode and into HTML mode at the beginning
- of the target file, and resumes again at the end. For this reason,
- any code inside the target file which should be executed as PHP
- code must be enclosed within <link
- linkend="language.basic-syntax.phpmode">valid PHP start and end
+ Als de "URL fopen wrappers" zijn ingeschakeld (in de default configuratie
+ is dit het gevel), dan kun je een file ook
+ <function>include</function>n met een URL, in plaats van een lokale
+ path naam. Zie <link linkend="features.remote-files">Remote
+ files</link> en <function>fopen</function> voor meer informatie
+ hierover.
+ </simpara>
+ <simpara>
+ Een belangrijke opmerkinge plaatsen we hier over bestanden die
+ worden ge-<function>include</function>ed of
+ ge-<function>require</function>ed. Deze functies zorgen er beide
+ voor dat de parser PHP mode verlaat en overgaat in HTML mode voor
+ de opgegeven files aan het begin van het bestand, en aan het einde
+ van dit bestand weer in PHP mode overgaat. Daarom moet de inhoud
+ van deze bestanden worden omgeven met <link
+ linkend="language.basic-syntax.phpmode">geldige PHP begin en einde
tags</link>.
</simpara>
<para>
- This happens each time the <function>include</function> statement
- is encountered, so you can use an <function>include</function>
- statement within a looping structure to include a number of
- different files.
+ Dit gebeurd iedere keer als <function>include</function> statement
+ wordt tegegekomen, daarom kun je met een <function>include</function>
+ in een loop structuur een aantal verschillende files invoegen.
<informalexample>
<programlisting role="php">
$files = array ('first.inc', 'second.inc', 'third.inc');
@@ -955,30 +959,29 @@
</informalexample>
</para>
<para>
- <function>include</function> differs from
- <function>require</function> in that the include statement is
- re-evaluated each time it is encountered (and only when it is
- being executed), whereas the <function>require</function>
- statement is replaced by the required file when it is first
- encountered, whether the contents of the file will be evaluated or
- not (for example, if it is inside an <link
- linkend="control-structures.if">if</link> statement whose
- condition evaluated to false).
+ <function>include</function> verschilt van het
+ <function>require</function> statement op éé punt.
+ Een <function>include</include> statement wordt elke keer
+ ge-evalueerd als deze wordt tegengekomen (en ook alleen maar tijdens
+ de uitvoering van een script). Dit in tegenstelling tot het
+ <function>require</function> statement, welke wordt vervangen door
+ de opgegeven file als deze voor de eerste keer wordt tegenkomen.
</para>
<para>
- Because <function>include</function> is a special language
- construct, you must enclose it within a statement block if it is
- inside a conditional block.
+ Omdat <function>include</function> een speciale taal constructie
+ is, ben je verplicht deze te omgeven met een statement blok als
+ het <function>include</function> statement zich in een conditionele
+ constructtie bevind.
<informalexample>
<programlisting role="php">
-/* This is WRONG and will not work as desired. */
+/* Dit is FOUT en zal niet werken zoals het bedoeld is */
if ($condition)
include($file);
else
include($other);
-/* This is CORRECT. */
+/* Dit is GOED. */
if ($condition) {
include($file);
@@ -989,38 +992,39 @@
</informalexample>
</para>
<simpara>
- In both PHP 3 and PHP 4, it is possible to execute a
- <literal>return</literal> statement inside an
- <function>include</function>ed file, in order to terminate
- processing in that file and return to the script which called
- it. Some differences in the way this works exist, however. The
- first is that in PHP 3, the <literal>return</literal> may not
- appear inside a block unless it's a function block, in which case
- the <literal>return</literal> applies to that function and not the
- whole file. In PHP 4, however, this restriction does not
- exist. Also, PHP 4 allows you to return values from
- <function>include</function>ed files. You can take the value of
- the <function>include</function> call as you would a normal
- function. This generates a parse error in PHP 3.
+ In zowerl PHP 3 als PHP 4, is het mogelijk om een
+ <literal>return</literal> statement uit te voeren in een
+ ge-<function>include</function>d file, om bijvoorbeeld een fout
+ conditie terug tegeven aan het script wat het bestand uitvoerde.
+ Er zijn wel verschillend in de manier waarop dit werkt. Het eerste
+ verschil is dat in PHP 3 het <literal>return</literal> zich niet
+ binnen een blok mag bevinden, tenzij het een functie blok betreft.
+ In dit laatste geval heeft het <literal>return</literal> statement
+ betrekking op de functie natuurlijk, en niet op de gehele file.
+ In PHP 4 bestaat deze restrictie echte niet. Het is in PHP 4 ook
+ mogelijk om waardes terug te geven van uit
+ <function>include</function>d files. Je kunt dan de return waarde van
+ het <function>include</function> statement gebruiken net zoals een
+ gewone functie. In PHP 3 zal dit een parse error genereren.
</simpara>
<example>
- <title><function>include</function> in PHP 3 and PHP 4</title>
+ <title><function>include</function> in PHP 3 en PHP 4</title>
<para>
- Assume the existence of the following file (named
- <filename>test.inc</filename>) in the same directory as the main
- file:
+ Naam aan dat het volgende bestand bestaat (genoemd
+ <filename>test.inc</filename>) en dat deze zich in dezelfde
+ directory bevind als het hoofd script:
<programlisting role="php">
<?php
-echo "Before the return <br>\n";
+echo "Voor de return <br>\n";
if (1) {
return 27;
}
-echo "After the return <br>\n";
+echo "Na de return <br>\n";
?>
</programlisting>
</para>
<para>
- Assume that the main file (<filename>main.html</filename>)
+ Naam aan dat het hoofd script, (<filename>main.html</filename>)
contains the following:
<programlisting role="php">
<?php