Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the differences between web and php

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the difference between web and php, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

The difference between web and php: 1, php is mainly used for back-end data processing and operation data addition, deletion, modification and query, while web front-end is used to display the interface and data to users; 2, php runs and interprets on the server, web front-end mainly uses browsers to solve; 3, php should consider efficiency and security, while web front-end should pay more attention to operability and aesthetics.

The operating environment of this tutorial: windows10 system, PHP7.1 version, DELL G3 computer.

A back end, a front end, this is the biggest difference. To be more specific, you can say:

1. Different functions. Php is mainly used for backend data processing and operation data, adding, deleting, modifying and querying. The html,js,css included in the web front end is used to display the interface and data to the user.

2. The syntax is different, and the environment or location of running is different. Php runs and interprets on the server, and the front end is mainly solved by browsers.

3. Different aspects need to be considered. PHP should consider efficiency and security, while the front end should pay more attention to maneuverability and beauty.

The difference between php development and web front-end development

1. Different business application scenarios

Web front-end development mainly refers to the traditional PC web page development, the page is mainly run in the PC browser, and the page developed by PHP is mainly run on the mobile phone. Intuitively, the PC page is larger and the mobile page is smaller, but according to development experience, a large page does not mean that the written code is complex, and a small page does not mean that it is easy to develop, and the difficulty and ease mainly depend on the specific business requirements.

2. the use of new technologies is different.

Because the webkit kernel is mainly used on the mobile side, and the support for new technologies such as HTML5 is better, the new technologies can be used on a larger scale. While the development on the PC side requires compatibility with older browsers such as IE in many scenarios, the use of new technologies is limited in some cases because of browser compatibility.

3. The adaptability of pages is different.

Traditional PC page developers generally choose to set a fixed width for the page, with white space on both sides, but the mobile page because its carrier mobile phone screen is much smaller than PC, generally choose to display content on the mobile screen as much as possible, which requires that the mobile page should be able to fully adapt to various screen sizes of mobile phones and make maximum use.

4. Page performance is different.

The network situation of the PC side is generally stable, which is connected to the network through the network cable or Wi-Fi; but the mobile end is more complex, in addition to Wi-Fi, there are 2G, 3G, 4G and even alternate switching in several different network connections.

The challenge that the unstable network connection brings to the page performance is that the page resources of the mobile side should not be too large, otherwise, in the bad network situation, the page will be inaccessible, seriously affecting the user experience.

5. Frame selection is different.

Due to the instability of the mobile network, we generally only consider small and beautiful frames when selecting page frames on the mobile end. For example, only 9.6K after compression like zepto.js can meet the needs of general business. If you want to build a more complex single-page application, you can choose a framework like vue.js, which is powerful, but only more than 20K after volume compression.

While the web side has a relatively wide range of choices, some heavy frameworks can also be considered according to project requirements, such as the ancient but huge ext.js, which is still active in some enterprise background management system projects with many UI components.

Thank you for reading this article carefully. I hope the article "what's the difference between web and php" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report