Hi

I'm trying to use include () function in my php script. But I just don't know what is the right way or professional way to do this.

Should I use environmental variables like $DOCUMENT_ROOT, $SERVER_NAME, $HTTP_HOST ?

How to use this environmental variable with the include() function ?

Is this alright ?

include("$DOCUMENT_ROOT/myinclude/filename.php");