Absolute root path

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

How can I set file paths so that they can be readable at any depth or
branch from the webroot?

For example:
include($_SERVER['DOCUMENT_ROOT'] . "/somedir/anotherdir/myfile")

works for includes, but using it in other situations (like with an IMG
tag) appends the URL to the path and makes it worthless.

I would like something I can use in every situation...

Thanks for any advice...

Rick B

Site Timeline