Home  >  Article  >  Backend Development  >  The difference between php and front-end

The difference between php and front-end

藏色散人
藏色散人Original
2019-06-20 10:17:176208browse

The difference between php and front-end

The difference between php and front-end

One back-end and one front-end, this is the biggest difference.

To be more detailed, you can say this:

1. The functions are different. PHP is mainly used for back-end data processing and data manipulation, addition, deletion, modification and query. The html, js, css, etc. included in the web front end are used to display the interface and data to the user.

2. The syntax is different, and the running environment or location is different. PHP is run and interpreted on the server, and the front-end is mainly solved by the browser.

3. There are different aspects to consider. PHP needs to consider efficiency and security more, while the front-end needs to pay more attention to operability and beauty.

Note:

PHP (foreign name: PHP: Hypertext Preprocessor, Chinese name: "Hypertext Preprocessor") is a General-purpose open source scripting language. The syntax absorbs the characteristics of C language, Java and Perl, which is easy to learn and widely used. It is mainly suitable for the field of Web development.

PHP's unique syntax mixes C, Java, Perl and PHP's own syntax. It can execute dynamic web pages faster than CGI or Perl. Compared with other programming languages, dynamic pages made with PHP embed programs into HTML (an application under the Standard Universal Markup Language) document for execution, and the execution efficiency is much higher than CGI that completely generates HTML tags; PHP can also execute compiled code. Compilation can achieve encryption and optimize code running, making the code run faster.

Front-end is the front-end part of the website, which runs on PC, mobile and other browsers and displays the web pages for users to browse. With the development of Internet technology, the application of HTML5, CSS3, and front-end frameworks, cross-platform responsive web design can adapt to various screen resolutions, and perfect dynamic design can bring users a very high user experience.

Front-end technology is generally divided into front-end design and front-end development. Front-end design can generally be understood as the visual design of the website, and front-end development is the front-end code implementation of the website, including basic HTML, CSS and JavaScript/ajax. Now The latest advanced versions of HTML5, CSS3, and SVG, etc.

Recommended: "PHP Tutorial"

The above is the detailed content of The difference between php and front-end. 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
Previous article:php timestamp conversionNext article:php timestamp conversion