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 is php?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article introduces the knowledge of "what is php". In the operation of actual cases, many people will encounter such a dilemma. Then 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!

Php is neither a video nor a picture, php is a powerful server-side scripting language for creating dynamic interactive sites; PHP grammar learns C, absorbs the characteristics of Java and Perl to develop its own characteristic syntax, and continuously improves itself according to their strengths.

This article operating environment: Windows7 system, PHP7.1, Dell G3 computer.

Is php a video or a picture?

Php is not a video or a picture. PHP is a powerful server-side scripting language for creating dynamic interactive sites.

PHP (PHP: Hypertext Preprocessor), or "hypertext preprocessor", is a scripting language executed on the server side, especially suitable for Web development and can be embedded in HTML. PHP grammar learned C language, absorbed the characteristics of Java and Perl to develop its own characteristic grammar, and continuously improved itself according to their strengths, such as java's object-oriented programming, the main goal of which was to allow developers to quickly write high-quality web websites. PHP supports both object-oriented and process-oriented development and is very flexible in use.

After more than 20 years of development, with the rapid development and improvement of php-cli-related components, PHP has been applied to the research and development of non-Web systems such as TCP/UDP services, high-performance Web, WebSocket services, Internet of things, real-time communications, games, micro services and so on.

According to statistics released by W3Tech on December 6, 2019, PHP accounts for 78.9% of the programming languages used on the server side of the WEB website. Of the content management system websites, 58.7% use WordPress (CMS system developed by PHP), which accounts for 25.0% of all websites.

Language features

Open source and free

PHP is an open source software project with a large audience and many developers, Linux + Nginx + Mysql + PHP is its classic installation and deployment, related software are all open source free, so the use of PHP can save a lot of genuine licensing fees. However, as an open source software, PHP lacks the support background of large technology companies, and its negative voice on the Internet is enduring, but the reality of its continuous iteration and continuous performance improvement is encouraging, and the PHP community has responded strongly to all kinds of questions with practical actions.

Fast and efficient

The kernel of PHP is the foundation of C language, and it can be used to develop high-performance extension components in C language. The core of PHP contains more than 1000 built-in functions, and the program code is simple. [27] PHP array supports dynamic expansion and associative arrays with numeric, string or mixed key names, which can greatly improve the efficiency of development. [28] PHP is a weakly typed language with high program compilation pass rate and faster development efficiency than other strongly typed languages; PHP is naturally hot deployment, code files are covered in php-fpm operation mode to complete hot deployment; PHP after more than 20 years of development, a large number of references can be found on the Internet for reference.

Performance improvement

The higher the PHP version, the higher its overall performance. According to the official introduction, PHP7.0.0 [15] has improved two times the performance of PHP5.6, and PHP7.4 is about 30% faster than PHP7.0. Compared with PHP7.4, PHP8.0 has about 10% improvement in performance. PHP 8.0 introduces JIT compiler features along with a variety of new language features, such as named parameters, associative types, annotations, Constructor Property Promotion, match expressions, nullsafe operators, and improvements to the type system, error handling, and consistency. PHP has its own core development team, which maintains the frequency of releasing one large version in five years and two small versions in one month, and the latest version is PHP8.08 [16]. PHP 7.0.0 [17] was released in 2015-12-03, the latest version is PHP 7.4.21 [19] (release date: 2021-07-01), PHP 8.0.0 [18] is released in 2020-11-26, and the latest version under this version is PHP 8.0.8 (release date: 2021-07-01).

Cross platform

Each platform has a corresponding version of php interpreter, which means that the binary code (PHP interpreter) of the target platform is compiled for different platforms. The program developed by php can run on windows, linux, unix and other operating systems without modification.

Resident memory

In php-cli mode, programs can be resident in memory, and all kinds of variables and database connections can be stored in memory [10] for a long time to realize resource reuse. A more common method is to write a cli framework combined with swoole [9] components.

Page life cycle

In php-fpm mode, all variables are page-level, whether global variables or static members of the class, will be emptied after the page execution, low requirements for programmers, very little memory, especially suitable for the development of small and medium-sized systems.

That's all for "what php is". Thank you for your 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.

Share To

Development

Wechat

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

12
Report