The file as to be .php in order to work: example.php
There is nothing wrong with the code.
make sure there is no spaces in the file name.
I have found IIS to be a pain with php, so i use XAMPP
http://www.apachefriends.org/en/xampp.html
I know you can set up PHP on windows server, but i have found it a lot better on Apache.