how to assign path in index. php in your root dir. code example Example: php root path $_SERVER['DOCUMENT_ROOT']