Source of: /manual/en/function.require.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.php',
1 => 'require',
),
'up' =>
array (
0 => 'language.control-structures.php',
1 => 'Control Structures',
),
'prev' =>
array (
0 => 'function.return.php',
1 => 'return',
),
'next' =>
array (
0 => 'function.include.php',
1 => 'include',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.require" class="sect1">
<h2 class="title"><b>require()</b></h2>
<p class="para">
<b>require()</b> is identical to <a href="function.include.php" class="function">include()</a>
except upon failure it will also produce a fatal <b><tt class="constant">E_ERROR</tt></b>
level error. In other words, it will halt the script whereas
<a href="function.include.php" class="function">include()</a> only emits a warning
(<b><tt class="constant">E_WARNING</tt></b>) which allows the script to continue.
</p>
<p class="para">
See the <a href="function.include.php" class="function">include()</a> documentation for how this works.
</p>
</div><?php manual_footer(); ?>