use magic constant DIR instead of DOCUMENT_ROOT