First off I googled a million pages and just could not find answers :shifty:.
I am trying to do this:
1. In a configuration.php file I want to set up the path to my site
I currently have this
$siteroot = $_SERVER['DOCUMENT_ROOT'];
- In my other files I want to simply create blank containers and just include pages. So for instance in Index.php I want to include header.php, sidebar.php and footer.php.
I currently have this:
At the top of my page I am calling the configuration.php: <?php require_once ("includes/configuration.php");?>
And in the spot where I want my header to appear I use this:
<?php include("$siteroot/includes/module-header.php"); ?>
And likewise for all the other includes - sidebar.php and footer.php.
This does not work, I get this error message:
[b]Warning[/b]: include(D:/wamp/www//includes/module-header.php) [[function.include](http://localhost/imi/function.include)]: failed to open stream: No such file or directory in [b]D:\\wamp\\www\\imi\\index.php[/b] on line [b]105[/b]
Now I want this to work in my local server and seamlessly work in production.
I have no understanding and what code I am using was from one of my many google adventures... it apparently is incorrect.