Using root-relative paths for PHP includes...
Hi,
I'm an average HTML programmer who knows just enough about PHP to use includes.
I have a simple website layout that uses PHP includes like this :
<?php include ('../_header.php'); ?>
<?php include ('content.php'); ?>
<?php include ('../_footer.php'); ?>
Can't use root-relative paths in includes because, as you pros already know, root-relative on the server means something completely different.
Is there a quick and easy way for me to remedy this, perhaps with an added line in either the header or htaccess file? The convenience of being able to move files outside of DW without having to worry about links like these is worth the initial bother, I find.
Thanks!
