Source of: /manual/en/function.require-once.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/language.control-structures.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'function.require-once.php',
1 => 'require_once',
),
'up' =>
array (
0 => 'language.control-structures.php',
1 => 'Control Structures',
),
'prev' =>
array (
0 => 'function.include.php',
1 => 'include',
),
'next' =>
array (
0 => 'function.include-once.php',
1 => 'include_once',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.require-once" class="sect1">
<h2 class="title"><b>require_once()</b></h2>
<p class="para">
The <b>require_once()</b> statement is identical to
<a href="function.require.php" class="function">require()</a> except PHP will check if the file has
already been included, and if so, not include (require) it again.
</p>
<p class="para">
See the <a href="function.include-once.php" class="function">include_once()</a> documentation for information
about the <i>_once</i> behaviour, and how it differs from
its non <i>_once</i> siblings.
</p>
</div><?php manual_footer(); ?>