Is there a way to disable/negate the use of $_SERVER['DOCUMENT_ROOT'] when including my php files? I would prefer
require '/somedirectory/somefile.php';
instead of
$_SERVER['DOCUMENT_ROOT'].'/somedirectory/somefile.php';
Running Centos and cPanel.
Or is this something that will always be required when writing my php code?
Just use:
require './somedirectory/somefile.php';