View Single Post
Old 10-09-2012, 02:13 AM   PM User | #8
andrew55
New Coder

 
Join Date: Mar 2012
Posts: 18
Thanks: 4
Thanked 0 Times in 0 Posts
andrew55 is an unknown quantity at this point
I think I understand..if the file is in the root, it should be:

PHP Code:
<?php 
require_once __DIR__ '/includes/header.php';
?>
If it's one directory deep, it should be:

PHP Code:
<?php 
require_once __DIR__ '/../includes/header.php';
?>
If it's two directories deep, it should be:

PHP Code:
<?php 
require_once __DIR__ '/../../includes/header.php';
?>
etc...

Please confirm this is correct and thank you.
andrew55 is offline   Reply With Quote