I'm using IIS7 to run a website which my client wants in PHP, and I've run into an annoying issue.
I can easily include fragment files via the PHP include() method, but it gets complicated when files are not at the root level of the website. I've been trying to use (1) the standard SSI include and (2) the PHP virtual() method, but in both cases my fragment files aren't being included.
Note: my page ends in a .php extension.
In the first case (SSI includes), I'm using the following code:
CODE
<!--#include virtual="/x/y/z.ssi" -->
The server (IIS7) simply ignores this code and interprets that line as an HTML comment. This exact code works fine when running ASP.NET, so I don't know if it's a PHP setting.
In the second case, (using PHP virtual() method), I get this error:
Fatal error: Call to undefined function: virtual()I need to use virtual includes in my particular case... has anyone ever encountered this? (I'm running a shared hosting account through GoDaddy if that's important)