Home > Article > Backend Development > Share ASP.NET study notes (11) WebPages PHP
ASP.NET Web Pages - PHP
PHP developers please note that Web Pages can be written in PHP.
WebMatrix supports PHP
At first glance, I think WebMatrix only supports Microsoft technology. This is not correct. In WebMatrix, you can write complete PHP applications.
Creating a PHP site
In the ASP.NET Web Pages - Creating a Website chapter, you have created an empty website named "Demo" with a page of type "CSHTML " empty page.
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" and you have created your first PHP site.
Create a PHP page
Copy the following code to the "index.php" file:
index.php <!DOCTYPE html><html><body><?phpphpinfo();?></body></html>
[Related recommendations]
1. ASP.NET Free Video Tutorial
2. Share ASP.NET study notes (10) WebPages Email
3. Share ASP. NET study notes (9) WebPages chart
4. Share ASP.NET study notes (3) WebPages layout
5. Share ASP. NET study notes (4) Folder
6. Share ASP.NET study notes (5) Global page AppStart and PageStart
7. Share ASP.NET study notes (8) WebPages Helper
The above is the detailed content of Share ASP.NET study notes (11) WebPages PHP. For more information, please follow other related articles on the PHP Chinese website!