|
I'm converting my site to PHP in order to include one header file in every file. However, my site is organized such that I have a "videos" directory which contains many more pages, and I want to include the same header file on these pages. For some reason, the statement
<?php include("/header.php");?>
does not look for the file in the root directory, unlike the statement
<link rel="stylesheet" type="text/css" href="/style.css">
I'm new to PHP; is the syntax of that invalid? I do realize that I can include("../header.php"), but I like referring to things absolutely in case I move files around. And no, I don't want to include it as an absolute URL, because I need to develop things offline. Is there any way to do this in PHP?
Thanks,
-Duff
__________________
http://duffx.com
|