D
dorayme
On a Unix server, including the server on my Mac, you can use
<?php include ($_SERVER['DOCUMENT_ROOT'].'/includes/footer.inc');
?>
in any html doc at any level (at least at any level at or below
the normal /public_html) and the footer appears fine in any
browser and with the folder "includes" (containing the footer
markup) at almost any level.
In order to get php includes working on a Windows server, I
manage by stating the detailed path to the folder. This involves
more careful vetting of all the paths in the various folders and
sub folder. It would be nice to have some construction that
worked like with a Unix server. Any suggested strategies please?
(I post here rather than PHP ng because they seem altogether too
technical for it to be useful to me... though I might try. I
think I may have asked something similar in the past but the fact
is I am no nearer a solution. Just be a bit neater not to have to
vet all the paths...)
<?php include ($_SERVER['DOCUMENT_ROOT'].'/includes/footer.inc');
?>
in any html doc at any level (at least at any level at or below
the normal /public_html) and the footer appears fine in any
browser and with the folder "includes" (containing the footer
markup) at almost any level.
In order to get php includes working on a Windows server, I
manage by stating the detailed path to the folder. This involves
more careful vetting of all the paths in the various folders and
sub folder. It would be nice to have some construction that
worked like with a Unix server. Any suggested strategies please?
(I post here rather than PHP ng because they seem altogether too
technical for it to be useful to me... though I might try. I
think I may have asked something similar in the past but the fact
is I am no nearer a solution. Just be a bit neater not to have to
vet all the paths...)