Home >Backend Development >C#.Net Tutorial >Share ASP.NET study notes (11) WebPages PHP

Share ASP.NET study notes (11) WebPages PHP

零下一度
零下一度Original
2017-05-27 15:55:351508browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn