This section describes how to write in PHP
Web Pages.PHP developers, please note that Web Pages can be written in PHP.
At first glance, it seems that WebMatrix only supports Microsoft technology. This is incorrect. In WebMatrix, you can write complete PHP applications.
In the ASP.NET Web Pages - Creating a Website chapter, you 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 in the figure below), create a blank page of PHP type, and name it "index.php", so that you You have created your first PHP site.
Copy the following code into the "index.php" file:
<!DOCTYPE html> <html> <body> <?phpphpinfo();?> </body> </html>
Run the file to see a demo of the PHP page.