Just a thought but it occurred to me that when I wanted to define the document root for a website that I could use the $_SERVER['DOCUMENT_ROOT']
and it works fine on a live host.
Then I thought why not just use a simple:
define('SITEPATH,'http://www.site.co.uk');
The define method works fine with no need to use document root.
Am I missing something? Or is it just a matter or personal preference?