The difference between php and web

王林
Release: 2023-02-25 09:12:02
Original
3793 people have browsed it

The difference between php and web

The difference between PHP development and web front-end development

1. Different business application scenarios

Web front-end development mainly refers to traditional PC-side web page development. Pages are mainly run in PC-side browsers. Pages developed in PHP are mainly run on mobile phones. Intuitively, you will feel that the PC page is larger and the mobile page is smaller. However, according to development experience, a large page does not mean that the written code is complicated, and a small page does not mean that the development is simple. The difficulty or ease mainly depends on Specific business needs.

2. The use of new technologies is different

Since the mobile terminal is mainly based on the webkit kernel, it has better support for new technologies such as HTML5, so it can be larger New technologies are used in a wide range of applications; while PC-side development requires compatibility with older versions of browsers such as IE in many scenarios. Due to browser compatibility considerations, the use of new technologies is restricted in some cases.

3. Page adaptability is different

Traditional PC-side page development generally chooses to set a fixed width for the page, with white space on both sides, but mobile Since the mobile phone screen is much smaller than that of PC, mobile terminal pages generally choose to display as much content as possible on the mobile phone screen. This requires mobile terminal pages to be able to fully adapt to mobile phones of various screen sizes and make maximum use.

4. The performance of the page is different

The network situation on the PC side is generally relatively stable, and all are connected to the network through network cables or Wi-Fi; but the mobile side is more complicated. In addition to Wi-Fi, there are also 2G, 3G, 4G, and even switching between several different network connections often occurs.

The challenge that unstable network connections bring to page performance is that the page resources on the mobile side should not be too large, otherwise the page will be inaccessible under poor network conditions, seriously affecting the user experience.

5. Different frame selections

Due to the instability of the mobile network, when selecting mobile page frames, we generally only consider small and beautiful ones. Frameworks, such as zepto.js, only have 9.6K after compression, which 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 bulky. After compression, it is only more than 20K.

The web side has a relatively large range of choices, and some heavier frameworks can also be considered based on project needs. For example, the ancient but huge ext.js is still active in some enterprises with its many UI components. In the background management system project.

Recommended tutorial:PHP video tutorial

The above is the detailed content of The difference between php and web. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!