Calculate total.
Test $_SERVER['DOCUMENT_ROOT'].