-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathinclude-once.xml
More file actions
executable file
·47 lines (45 loc) · 1.59 KB
/
include-once.xml
File metadata and controls
executable file
·47 lines (45 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 89d80c92a1154a2903fff371f0d056bf2ac8ba27 Maintainer: raphaelm Status: ready -->
<sect1 xml:id="function.include-once" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>include_once</title>
<?phpdoc print-version-for="include_once"?>
<para>
Der Ausdruck <literal>include_once</literal> bindet eine angegebene Datei ein
und führt sie als PHP-Skript aus.
Dieses Verhalten ähnelt dem des Ausdrucks <function>include</function>, mit
dem einzigen Unterschied, dass die Datei, wenn sie bereits eingebunden wurde,
nicht erneut eingebunden wird und include_once &true; zurückgibt. Wie der
Name schon sagt, wird die Datei nur einmal eingebunden.
</para>
<para>
<literal>include_once</literal> kann beispielsweise benutzt werden,
wenn die selbe Datei an mehreren Stellen eingebunden wird, um Problemen
durch erneute Definitionen von Funktionen, erneute Zuweisung
von Variablen oder ähnliches zu vermeiden.
</para>
<para>
Für die Funktionsweise der Funktion, siehe die Dokumentation zu
<function>include</function>.
</para>
</sect1>
<!-- 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
-->