downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

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(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites