[thelist] PHP, include() and relative links
Peter Stansfield
pete at stan42.freeserve.co.uk
Fri May 25 11:40:10 CDT 2001
Could anyone tell me how to use absolute roots - if that's the right way of
putting it - and the include command in PHP, or am I trying to do the
impossible.
I want to be able to include a file called template.php located in a files
directory. I want this file to be included by several different files held
in different directories. I thought this could be acheived using
include("/file/template.php") but it doesn't seem to want to work.
Please could someone show me the error of my ways.
Many thanks in advance
More information about the thelist
mailing list