In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what is the difference between php and css". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The difference between php and css: 1, PHP belongs to the server language, while css belongs to the client language; 2, php is used to deal with the logic layer, and css is used to do the presentation layer of the web page; 3. Php can dynamically generate web pages, while css needs to format web page elements dynamically with various languages.
Operating environment of this tutorial: windows10 system, PHP7.1 version, DELL G3 computer
The difference between php and css
Php is a server-side language, and css is a cascading stylesheet, which is a computer language used to represent file styles such as HTML (an application of the standard general markup language) or XML (a subset of the standard general markup language), commonly known as the client language.
A website can be divided into two parts: art style and function. Php is to control the program function, while css is to control the art style.
Css can control the page style, not only can modify the page statically, but also can format the elements of the page dynamically with various scripting languages. Css can accurately control the layout of elements in a web page at the pixel level, support almost all font size styles, and have the ability to edit web objects and model styles.
Php is a server-side language, a scripting language commonly used in Web application development, which can generate web pages dynamically.
Php can be used to:
1. Collect form data
At this point, forms are a common data entry interface for programming. When a form is submitted, it usually uses either get or post to send the data to the php program script for processing.
2. Generate dynamic web pages
Php runs on the server side and can dynamically output the content of user requests through different requests on the client side and after running different scripts. In short, client-request-> php server-run output-> client, the client cannot see the php program running process.
3. String processing
Programming spends most of its time manipulating strings, and string processing skills are a must. Php treats strings as a basic data type.
4. Dynamic output image
Php dynamically outputs images by using the GD extension library. For example, text buttons, CAPTCHAs, data charts, editing images, thumbnails, adding watermarks, and so on.
5. Deal with server-side file system
Use file system operation functions to manipulate directories or files in the server. Including open, edit, copy, create, delete and file properties and other operations.
6. Write web pages supported by the database
In fact, it is the process of using php scripts to run to interact with the database. The first is the user request, and then the php runs to interact with the database to feed back the interaction result set to the client user.
7. Session tracking control
HTTP protocol is a stateless protocol, and there is no mechanism to maintain the state between two things. So php uses the idea of session control to track users so that when a user requests one page, when he requests another page, he knows that the request is from the same user. It is common to save login settings and shopping carts in various shopping malls on major websites and save this information for users in a cycle.
8. Deal with XML/json files
To put it simply, these files are processed through various extensions through php.
9. Support the use of a large number of network protocols
Php supports the use of various protocol services, and can open the original network port, so that various protocols can work together.
10. Other operations on the server side
For example, online payment programs in the field of e-commerce. And can be used in all the mainstream operating systems windows, linux, ios and so on.
This is the end of the content of "what's the difference between php and css". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.