ASP.NET Web Pages - PHP
PHP developers please note: Web Pages can be written in PHP.
WebMatrix Supports PHP
At first glance, one might think WebMatrix only supports Microsoft technologies. This is incorrect. In WebMatrix, you can write complete PHP applications.
Create a PHP Site
inASP.NET Web Pages - Creating a Websitechapter, you already created an empty website named "Demo" with an empty page of type "CSHTML".
Repeat the creation process to create an empty site named "Demo_PHP", check "Enable PHP" (as shown below), create a blank PHP page, and name it "index.php"; this way you have created your first PHP site.

Create a PHP Page
Copy the following code into the "index.php" file:
index.php
Run the file to see the PHP page demo.