ASP.NET Web Pages - PHP
PHP developers, please note: Web Pages can be written in PHP.
WebMatrix Supports PHP
At first glance, you might think WebMatrix only supports Microsoft technologies. That is not correct. In WebMatrix, you can write complete PHP applications.
Create a PHP Site
InASP.NET Web Pages - Create a WebsiteIn the chapter, you have already created an empty website named "Demo" with an empty page of type "CSHTML".
Repeat the creation process: create an empty site named "Demo_PHP", check "Enable PHP" (as shown below), create a blank page of type PHP, 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
<!DOCTYPE html>
<html>
<body>
<?php
phpinfo();
?>
</body>
</html>
<html>
<body>
<?php
phpinfo();
?>
</body>
</html>
Run the file and see the PHP page demonstration.
Other Extensions