So we're recoding a site to bring it from Linux/Apache/PHP to Windows/IIS/PHP and are encountering the following problem.
When using various server variables, when doing something like:
print $_SERVER['DOCUMENT_ROOT']."/path/to/file.jpg";
It comes out as this on Linux/Apache/PHP
/sites/domain/htdocs/path/to/file.jpg
But on Windows (or just in IIS) it comes out as:
/sites/domain/htdocspath/to/file.jpg
Is there something in the IIS/PHP php.ini I can do to change this behaviour?