I want to make a path to be used with links and src attributes in my html - how do i achieve this?
my attempts:
<a href="' . $_SERVER['DOCUMENT_ROOT'] . '">Home</a>
or
<img src="' . $_SERVER['DOCUMENT_ROOT'] . '.images/whatever.jpg">
Can anyone expound upon this?