Is PHP working on the frontend or backend? What is the difference between front-end and front-end?
Source: Internet
Author: User
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply content: I personally understand the difference between a narrow front-end and a broad front-end.
Narrow front-endAs you have already said, the main technology of "visible parts (in a browser)" is HTML, CSS, JavaScript, Flash, siverlight, and so on.
Broad frontendIncluding the page that the server outputs to the user's browser, that is, the View layer in the MVC framework. the corresponding backend is service and data access. On the server, the front-end encapsulates part of the page display logic. for example, when a table is rendered, a loop is made at this layer (js rendering is also supported) or a form is produced. Because it is executed on the server, the advantage is fast and secure.
Of course, PHP functions are not only for output pages, but also for the logic layer, service layer and DAO, as well as reading and writing files, message queues, and event mechanisms. Strictly speaking, PHP does more things on the backend than on the front end. Different companies may have different understandings about this. I don't think it is necessary to be true. even if the front-end students in the narrow sense understand the php framework, it is also very beneficial. Most network programs are in C/S mode, that is, data transmission and interaction between the Client and the Server. Web applications are in the C/S mode. as a common client, browsers often use B/S to describe this mode. In the Web, the client (browser) is the front-end, and the server is the back-end.
I don't think PHP is the frontend or backend.
Run on the backend(Server side), and the running results will be displayed on the front-end (client side, browser. Just like editing a newspaper, writing an article in the newspaper, printing it in the newspaper, and then sending it to you. I agree with @ Yang Jialan's narrow sense.
It is generally believed that the narrow front-end refers to the display of related content on pages, including HTML, CSS, and JS. this is what everyone has said.
When chatting with students, I found that many backend engineers now divide backend into front-end and backend. the front-end refers to the more closely related part of request processing and business logic, and more refers to PHP; backend refers to the supporting structure of the system, which is biased towards the basic architecture. it may be developed by C/C ++ or Java.
The subject may mean this. 1. answer the following questions:
PHP is used in the background.
Frontend = Front-end, backend = Back-end.
2,
The landlord continues to cheer up and study Web development.
In fact, you asked this question a little too much. if you say too much, you may not be able to think about it, so learn from the foundation! In general, PHP is used for backend development, but PHP is also an important form of front-end display.
Therefore, General front-end development managers need to understand PHP, because it involves many application problems and communication with backend personnel. Shouldn't the front-end be a pretty girl like reception registration ~ PHP is a scripting language used in the background. In fact, the concepts of data processing and data exchange are relative... the end of the final display result (closest to you) is the so-called front-end.
Based on web requests, PHP is the backend, because running on the server, js, css, html is the front end (will be executed, parsed, rendered, etc. in the browser ). PHP is used in the background. Front-end development mainly involves adding some dynamic effects to the static user interface and does not involve data logic! For example, a login page: for front-end development, you only need to make a static page, add the color changes of the mouse to the input box, and remove the input box. However, after entering the user name and password, you need to connect to the database after logging on to the system, this requires background development for logic processing! PHP quick development practices video courses
The difference between the front-end and the back-end is the location for code parsing and running. the front-end is used for parsing and running on the server, and the other is the front-end.
The difference between the front-end and the front-end, I personally think that the front-end is wider, art, HTML tags, and js programming are all at the front-end. The front-end only supports programming.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.