Root directory of php file is the httdocs folder where xamp is being installed .In httdocs folder we can create our own folder as well and then we can put php ,html or other type files. As shown in following image localhost:/dashboard is the server path sharp-tutorial is the project folder then hompage.php is the php file. index.php is the deafult file which open when we do not pass name of the file in url.