1// Require_once is ignored if the required file has already been added by any of the include statements.
2<?php
3 require_once 'require_oncefile.php';
4?>
1define('__ROOT__', dirname(dirname(__FILE__))); //call define untill you get to the root directory
2require_once (__ROOT__."/Path/To/File.php"); //append __ROOT__ to the string