Latest web development tutorials

ASP.NET Web Pages PHP

Please note that PHP developers, Web Pages can be written in PHP.


WebMatrix supports PHP

At first glance, I think WebMatrix supports only Microsoft technology. This is not correct. In WebMatrix, you can write a complete PHP applications.


Create a PHP site

In ASP.NET Web Pages - Create a site section, you have created an empty site named "Demo", and with a type of "CSHTML" empty page.

Repeat the process created, create an empty site named "Demo_PHP", check "Enable PHP" (shown below), create a PHP type of blank pages, and name it "index.php", so that you It has been created your first PHP site.

Screenshoot


Create a PHP page

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

index.php

<!DOCTYPE html>
<html>
<body>

<?php
phpinfo();
?>


</body>
</html>

Run the file to see the demo PHP page.