DOC Root setting in config.php

Hi everyone
Would it not be a feasible option to use $_SERVER['DOCUMENT_ROOT'] in the config.php file to set the DOC_ROOT variable which we normally use in ALL our projects?
Won’t it fetch the document root path for us?
If so we can be 100% sure that we always get the right document root.
If this is found to be a feasible option, would really appreciate if this can be followed MANDATORILY by all programmers.
Silvester/Jay please do ponder on this.
Looking forward to your comments.
Would it not be a feasible option to use $_SERVER['DOCUMENT_ROOT'] in the config.php file to set the DOC_ROOT variable which we normally use in ALL our projects?
Won’t it fetch the document root path for us?
If so we can be 100% sure that we always get the right document root.
If this is found to be a feasible option, would really appreciate if this can be followed MANDATORILY by all programmers.
Silvester/Jay please do ponder on this.
Looking forward to your comments.