Just to confirm, is using:
$_SERVER["DOCUMENT_ROOT"]
the same as using: /
in HTML.
Eg. If current document is:
folder/folder/folder/index.php
I could use (in HTML) to start at the roort:
/somedoc.html
and to do the same in PHP I would have to use:
$_SERVER["DOCUMENT_ROOT"] . "/somedoc.html";
Is that correct? Is there an easier way to do it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…