Why DOCUMENT_ROOT is different than realpath('.') on remote server
snippet in htaccess

Why DOCUMENT_ROOT is different than realpath('.') on remote server

user1364

$_SERVER['DOCUMENT_ROOT'] = realpath($_SERVER['DOCUMENT_ROOT']);
echo $_SERVER['DOCUMENT_ROOT'] . "\n";