Do you have the php start and stop tags in place? <?php and ?>
Or it might be a server configuration problem, maybe your php engine isn't running.
By the way, it is a good idea from a security point of view to move most of your PHP code away from the html document tree, so something like this cannot happen. Given the right permissions on the directory folder, your PHP engine can read a file in from another location using "include" or "require" commands which the html server does not have access to. Just put code stubs in your document tree which "include" or "require" the actual script code from another location.
Thanks for your help on this.
Yes, I have the php start and stop tags in place. The full source codes work fine on another web server. Is that anything I need to configure on IIS, since the IIS has some difficulty to compile the php scripts?
I have no problem to load the phpinfo(), does it mean that my php is working fine?