Forum Moderators: coopster
I have used PHP code for the path to include file like:
[PHP]
<?PHP @require_once($_PATHROOT."en-US/bottompart/bottom.php");?>
[/PHP]
Issues is the following:
If I use
[PHP]
<?PHP @require_once($_PATHROOT."bottompart/bottom.php");?>
[/PHP]
it will not work work when I add alsoat the top of each file path variables (like file bottom.php)
[PHP]
<?PHP
@require_once("../variables/pathvariables.php");
?>
[/PHP]
Questions:
1. Why ../variables/ should be removed in case of $_PATHROOT=$_SERVER['DOCUMENT_ROOT']."/";
2. Is not needed code at the top of each INCLUDED file that links will work within pages?