Hey there, I've created a PHP testing environment on my PC using IIS. The default web root directory is C:\Inetpub\wwwroot.
Every domain that I test sits underneath it, like:
C:\Inetpub\wwwroot\Site1
C:\Inetpub\wwwroot\Site2
etc...
The problem that I'm having is that in my PHP code, sometimes I would like to include files by referencing them at the root level, i.e. include(‘/somefile.php’). This of course works on the production Apache web server, however, on my local installation the ‘/’ refers to the ‘wwwroot’ directory instead of the domain (or folder).
Is there a way to configure IIS to look at each folder as the root?
What I tried was creating a Virtual Directory inside IIS and mapped this to each folder/domain. But this didn’t work unfortunately.
Any ideas?