Thanks for the reply. I've figured out the doc_root issue IS an apache configuration problem where the installation root is reported instead of the local (shared environment) root. I've got my administrator on to it.
For future reference there is a work around which involves checking to see if doc_root is set correctly, and if not.. derive the root in this fashion:
$absoluteFilename = __FILE__;
$relativeFilename = $_SERVER['SCRIPT_NAME'];
$absolutePathPos = strrpos($absoluteFilename, $relativeFilename);
if ($absolutePathPos === false)
return ''; /* Unable to retrieve document root */
else
return substr($absoluteFilename, 0, $absolutePathPos);
Thanks for your quick replies.