for example:
/home/mydomain.co.uk/public_html/
Something generic for windows or linux? Id like it to produce the root path only regardless of where i call the script from. So not the absolute root path to my script.
Sorry is this is hard to understand.
$_SERVER['DOCUMENT_ROOT'];will work on both