<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>require</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.return.html">return</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.include.html">include</a></div> <div class="up"><a href="language.control-structures.html">Control Structures</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.require" class="sect1"> <h2 class="title">require</h2> <p class="verinfo">(PHP 4, PHP 5)</p> <p class="para"> <em>require</em> is identical to <span class="function"><a href="function.include.html" class="function">include</a></span> except upon failure it will also produce a fatal <strong><code>E_COMPILE_ERROR</code></strong> level error. In other words, it will halt the script whereas <span class="function"><a href="function.include.html" class="function">include</a></span> only emits a warning (<strong><code>E_WARNING</code></strong>) which allows the script to continue. </p> <p class="para"> See the <span class="function"><a href="function.include.html" class="function">include</a></span> documentation for how this works. </p> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.return.html">return</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.include.html">include</a></div> <div class="up"><a href="language.control-structures.html">Control Structures</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>