ASP.NET Web Pages - PHP
Attention PHP Developers. Web Pages can be written in PHP.
WebMatrix Supports PHP
At first look, WebMatrix only supports Microsoft technologies. This is not true. In WebMatrix you can write full PHP applications with MySQL and all.
Create a PHP Site
In the chapter ASP.NET Web Pages - Create a Web Site you created a new empty web site named "Demo", with a new empty page of the type "CSHTML".
Repeat the process, create an empty site named "Demo_PHP", enable PHP (see picture below), create a new empty page of the type PHP, name it "index.php", and you have created your first PHP site.
Create a PHP Page
Put the following code inside the "index.php" file:
Run the file and see PHP at work.
Thank You For Helping Us!
Your message has been sent to W3Schools.