I just migrated to a new hosting account. Almost all of my files are in php. In my last hosting account, to create a server side include, I used something like:
PHP Code:
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/includes/header.php');
?>
New hosting account won't seem to let me do this. Everything has to be relative such as
PHP Code:
<?php
include ("../includes/header.php");
?>
But...this also seems to work in the new hosting account:
PHP Code:
<?php
include ("includes/header.php");
?>
Is it OK to code all SSIs as demonstrated in the last example, or is this a bad practice. Having to set the relative paths will be much more complex and time consuming so I'm trying to avoid it. Thank you for any suggestions.