Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
There, some light...
1) try to open each files individually, to check their path
2) you use "includes('include/xxx);", which mean that you are always at the same level in your site. This might cause you a problem.
Look at that:
Code:
ROOT
|------ index.php
|------ includes/
| |
| |---> nav.php
|------ something/
|
|---> test.php
If you call your includes from index.php, there will be an includes folder at the same level.
But if you are in the "something" directory, the "includes" directory would be at the top most level, so it won't find it.
You can bypass this by using an absolute path, rather than a relative path.
Better yet, you can use PHP to resolve the absolute path:
PHP Code:
include($_SERVER['DOCUMENT_ROOT']."/includes/nav.php");
$_SERVER['DOCUMENT_ROOT'] points to your web site root folder on the server. Use this as a start, and then specify in which folder the include are to be found.
__________________
Only a biker knows why a dog sticks his head out the window.
|