I have just discovered that the value reported for
$_SERVER['DOCUMENT_ROOT'] by phpinfo is different from the value I
obtain when I run the following:
<?php echo $_SERVER['DOCUMENT_ROOT'] ?>
My natural assumption is to assume that this is a joke (like most of the
PHP language in my experience so far) - but seriously, does anyone know
why on earth a diagnostic tool like phpinfo() displays values that are
different from that obtained via a script call?
BTW - this is what explains my previous post - where I was wondering why
my require_once() was not working. I had blindly believed the values
spat out by phpinfo(0.
Its only under careful investigation, that I realized that the values
are different .. so I'm just going to "hack it", and simply hard code
the value, than believe anything phpinfo() has to say ... unless Im very
much mistaken ... can anyone explain this madness ?.