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