Hi Don,
Thanks for replying. I am not getting any error, I am just seeing the raw php of the file, so with the test file from your troubleshooting I see:
<?php
echo 'This is my first PHP program';
?>
I have seen this post http://blogs.iis.net/donraman/archive/2009/11/01/running-php-displays-the-code-itself.aspx but as you can see the file uses the full <?php tag and was edited in Notepad so should be a simple ANSI file.
Running through the rest of your steps the only thing I couldn't understand was this section:
Please name the above file as 'test.php' in your webroot folder (PHP SERVER variable _SERVER["DOCUMENT_ROOT]") and save it. I will be using 'C:\inetpub\wwwroot' as this is my webroot folder and also the place where my PHP_SERVER variable _SERVER["DOCUMENT_ROOT"] is set.
I couldn't get PHP SERVER command to work although it's probably down to my lack of PHP knowledge. My Default Web Site root directory is c:\inetpub\wwwroot though.
One other comment is that although running php from the command line worked it took a surprisingly long time (maybe 30 seconds or so) to exit after printing its output each time, I don't know if that's normal.
I can't see any errors in my IIS logs either, it just seems that IIS is not recognising my php file as something to be processed.