Easy Tutorial
❮ Control Checkboxlist Webpages Folders ❯

ASP.NET Web Pages - PHP


PHP developers take note, Web Pages can be written in PHP.


WebMatrix Support for PHP

At first glance, it might seem that WebMatrix only supports Microsoft technologies. This is incorrect. In WebMatrix, you can write a complete PHP application.


Creating a PHP Site

In the ASP.NET Web Pages - Creating a Website section, you have already created an empty website named "Demo" with an empty page of type "CSHTML".

Repeat the process to create an empty site named "Demo_PHP", check "Enable PHP" (as shown in the image below), create a blank page of PHP type, and name it "index.php", thus you have created your first PHP site.


Creating a PHP Page

Copy the following code into the "index.php" file:

index.php<?phpphpinfo();?>

Run the file to see the PHP page demonstration.

❮ Control Checkboxlist Webpages Folders ❯