I was under the impression the following generate the correct path (above document root):
define('ROOT', realpath($_SERVER['DOCUMENT_ROOT'] . '../'));
CURRENT Document ROOT: /Users/SwindonWeb/Dropbox
Trying to make it /Users/SwindonWeb/
I'm trying to find a script where the 1st part ($_SERVER['DOCUMENT_ROOT'])
is always the same, but the second part (../)
can be anything so that the ROOT can be set with a definitive path.
Any tips?