I have my settings as follows. In xampp / apache / conf / http.conf:
DocumentRoot "C:/xampp/htdocs/drupal/"
You can set yourself something like:
DocumentRoot "C:/xampp/htdocs/mysite/"
If I do, test.php in my drupal folder by running getcwd (), return
C:\xampp\htdocs\drupal
user470714
source share