D
dorayme
For many web sites hosted on Unix servers I use (happily) a
construction like this for includes:
<?php include ($_SERVER['DOCUMENT_ROOT'].'/includes/footer.inc');
?>
But this does not work on Windows servers. Does anyone know a
likely other candidate expression that will tell the server to go
to the level at which I have the site index file and look inside
a folder called 'includes'? No matter where it appears deep
inside the website directories?
It sort of spoils the point to be tailoring each path to where
the html file happens to be with "../"s (which, of course,
"works").
I know, I have wondered about this before and never really got
anywhere. Seem unable to have used any previous remarks to
advantage or have now forgotten them.
construction like this for includes:
<?php include ($_SERVER['DOCUMENT_ROOT'].'/includes/footer.inc');
?>
But this does not work on Windows servers. Does anyone know a
likely other candidate expression that will tell the server to go
to the level at which I have the site index file and look inside
a folder called 'includes'? No matter where it appears deep
inside the website directories?
It sort of spoils the point to be tailoring each path to where
the html file happens to be with "../"s (which, of course,
"works").
I know, I have wondered about this before and never really got
anywhere. Seem unable to have used any previous remarks to
advantage or have now forgotten them.