<?php require_once("WebServerInfo.class.php"); $obj = new WebServerInfo(); print "<pre>"; print $obj->get('DOCUMENT_ROOT'); ?>
info at phpclasses dot org