php include or require or require_once code example
Example 1: require_once php
// Require_once is ignored if the required file has already been added by any of the include statements.
<?php
require_once 'require_oncefile.php';
?>
Example 2: php require_once
define('__ROOT__', dirname(dirname(__FILE__)));
require_once(__ROOT__.'whatever');