Verifying IIS Configuration for PHP Scripts

Q

How to verify IIS configuration for PHP scripts?

✍: FYIcenter.com

A
If you have followed our Configuring IIS for PHP Scripts tutorial, you are ready to verify the configuration by follow this tutorial. This tutorial assumes that your IIS is configured to server Web documents from C:\inetpub\wwwroot.

1. Make sure that IIS is running.

2. Use "notepad" to enter this simple PHP script:

<html>
<body>
This is <?php echo "my first PHP script"; ?>.
</body>
</html>

3. Save this script as C:\inetpub\wwwroot\my_first.php.

4. Run a Web browser and enter the this URL: http://localhost/my_first.php. You will see IIS runs the script with the PHP engine and returns the result in the browser window as: IIS First PHP Script

2016-12-29, 9864👍, 0💬