|
Php includes with relative links?
Our company has a website, hosted on our own server, which uses php includes for the header and navigation elements. To get the includes to work, for some reason, we have to use the root path, e.g.
("/Library/WebServer/Documents/Website/layout/header.php")
It looks as though we ought to be able to use
("../Website/layout/header.php")
instead, but it just plain won't work. The problem is, moving the site means changing the root path everywhere. A pain. Any suggestions as to why the shortcut won't work, or is there something else I ought to be trying?
__________________
---> This space intentionally left blank. <---
|