Home  >  Article  >  Backend Development  >  PHP basics that novices must learn

PHP basics that novices must learn

烟雨青岚
烟雨青岚forward
2020-06-13 17:03:273393browse

PHP basics that novices must learn

The basic knowledge of php that novices must learn

1. What is a website?

Website refers to a collection of related web pages on the Internet that are produced using tools such as HTML to display specific content according to certain rules.

2. What does the website consist of?

The website consists of three parts: domain name (commonly known as URL or corn), website source program and website space.

Domain name (commonly known as website address) is in the form of: baimei.com (first-level domain name), www.baimei.com (second-level domain name);

The website space is provided by a dedicated independent server or rented The virtual host is responsible;

The website source program is placed in the website space, which appears as the website front-end and website back-end.

3. Static web pages and dynamic websites

Static web pages are the basis of website construction. Compared with dynamic web pages, static web pages refer to web pages that have no background database, no programs, and are non-interactive. Static web pages are relatively troublesome to update, and are suitable for display websites that generally have fewer updates.

Dynamic websites are reflected in web pages generally ending with asp, jsp, php, aspx, etc., while static web pages generally end with HTML (a subset of standard universal markup language). The server space configuration of dynamic websites is larger than that of static ones. The requirements for web pages are high, and the cost is correspondingly high. However, dynamic web pages are conducive to updating website content and are suitable for corporate website building. Dynamic is compared to static websites.

4. Dynamic website functional features

(1) Dynamic website can realize interactive functions, such as user registration, information release, product display, order management, etc.;

(2) Dynamic webpages are not webpage files that exist independently on the server, but the webpage is fed back when the browser makes a request;

(3) Dynamic webpages contain server-side scripts, so Page file names are often suffixed with asp, jsp, php, etc. But you can also use URL static technology to make the web page suffix appear as HTML. Therefore, the suffix of the page file cannot be used as the only criterion for judging whether the website is dynamic or static.

(4) Dynamic web pages require database processing, so the access speed of dynamic websites is greatly slowed down;

(5) Dynamic web pages have special codes, so compared with static web pages, their access speed is slower Search engine friendliness is relatively weak.

(6) However, with the improvement of computer performance and network bandwidth, the last two problems have been basically solved.

5. Development language

There are four main languages ​​for dynamic website development: ASP, ASP.NET, PHP, and JSP.

(1) ASP is Active Server Pages(Active Server Pages)

(2)ASP .NET’s predecessor ASP technology

(3)PHP is Hypertext Preprocessor(Super Text preprocessor)

(4) JSP is Java Server Pages(Java server page)

6, web server

Web server generally refers to A website server refers to a program that resides on a certain type of computer on the Internet and can provide documents to Web clients such as browsers. You can place website files for the world to browse; you can place data files for the world to download.

Currently the three most mainstream web servers are Apache, Nginx, and IIS.

7. Dynamic website schematic

PHP basics that novices must learn

PHP basics that novices must learn

##Thank you all for reading, I hope you will benefit from it A lot!

Original link: https://blog.csdn.net/Hyy4392649264/article/details/83792114

Recommended tutorial: "

php tutorial"

The above is the detailed content of PHP basics that novices must learn. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete