what is php? Invented a few years ago
php is a scripting language executed on the server side; PHP was created by Rasmus Lerdorf in 1994. It was originally a simple program written in Perl language to count the number of visitors to his own website; it was later reused It is written in C language and can access the database at the same time. In 1995, PHP released the first version PHP1.
The operating environment of this tutorial: Windows 10 system, PHP version 8.1, DELL G3 computer
What is php? In what year was it invented?
PHP (PHP: Hypertext Preprocessor) is a "hypertext preprocessor". It is a scripting language executed on the server side. It is especially suitable for Web development and can be embedded in HTML. PHP syntax learned the C language, absorbed the characteristics of multiple languages of Java and Perl to develop its own unique syntax, and continued to improve itself based on their strengths, such as Java's object-oriented programming. The main goal of the language was originally created to make Developers quickly write high-quality web sites. PHP supports both object-oriented and process-oriented development, and is very flexible in use.
Development History
PHP is an open source software project with many developers. It was originally the abbreviation of Personal Home Page and has been officially renamed "PHP: Hypertext Preprocessor" ". PHP was created by Rasmus Lerdorf in 1994. It was originally a simple program written in Perl language to count the number of visitors to his own website. Later, it was rewritten in C language and could access the database at the same time. In 1995, PHP (Personal Home Page Tools) released the first version PHP1. Since then, more and more websites have begun to use PHP and have strongly requested the addition of some features, such as loop statements and array variables. PHP2, released in 1995, added support for mySQL.
Andi Gutmans and Zeev Suraski discovered that PHP2 was obviously insufficient when developing e-commerce programs for a university project, so they rewrote the code and released PHP3. PHP3 is the first version similar to the syntax structure of modern PHP. The most powerful function of PHP3 is its scalability. PHP3's new functions and extensive third-party database and API support make it possible to write such programs.
Not long after PHP3 was officially released, Andi Gutmans and Zeev Suraski began to rewrite the PHP code. The design goal is to enhance the runtime performance of complex programs and the modularity of PHP's own code. After unremitting efforts, the Zend engine was successfully developed and achieved its design goals, and PHP was introduced in mid-1999. PHP4, based on this engine and incorporating more new features, was officially released in May 2000. In addition to higher performance, PHP 4 also includes key features such as support for more web servers, HTTP Sessions support, output buffering, safer user input, and several new language constructs.
PHP5 was officially released in July 2004. Its core is the 2nd generation Zend engine (PHP7 is the 3rd generation Zend enhanced version). It introduces a new object model and a large number of new features, and begins to support object-oriented programming. After PHP6 experienced a long period of development abortion, PHP5 released 6 versions and tenaciously supported the development of the open source community. It was not until 2015-12-03 that PHP 7.0 was released. In fact, PHP5.6 already contains many PHP6 It buys valuable time for the development of PHP7. Living up to expectations, the performance of PHP7.0 has been improved by 2 times compared to PHP5.6. The successful release of PHP7 has allowed many core development members to return to the PHP community, and PHP8 was released on 2020-11-26. Compared with the PHP7 series, PHP8 adopts a more stringent verification judgment mode for various variable judgments and operations, which is beneficial to the performance optimization of JIT in subsequent versions.
PHP language, as a high-level language, is characterized by open source and belongs to the C language system in terms of design system. It allows many beginners with higher education to quickly accept and complete introductory learning. It is simple and easy to use. It’s easy to get started and find a job, so you’ll have many fans. If the amount of data is large and the access pressure is high, technical solutions such as redis, mysql table partitioning, elasticsearch search engine, message queue write protection, and PHP system distributed cluster deployment can be integrated to alleviate the problems caused by data storage, service access, and data retrieval. huge pressure.
Whether it is a large, medium or small project, PHP is a very suitable high-level programming language. Whether it is suitable depends on the mastery of the project R&D team. But for larger and more complex projects, the most common php-fpm programming model shows its weaknesses. In view of the series of shortcomings exposed by PHP-fpm, the simplest and most reliable solution is to promptly upgrade to a higher version compatible with PHP. PHP7.0.0 [14] has a performance improvement of 2 times compared to PHP5.6. In addition, the Preloading provided by PHP7.4 The preloading mechanism enables some programs to reside in memory, achieving good performance improvements. In PHP8, it also provides efficient JIT (Just-In-Time compilation) computing support. In addition, developers with higher levels can turn to the more difficult php-cli programming, which can solve most system performance problems. Both PHP7 and PHP8 support this mode of programming.
After more than 20 years of development, with the rapid development and improvement of php-cli related components, PHP can already be applied in TCP/UDP services, high-performance Web, WebSocket services, Internet of Things, real-time communication, System development in non-Web fields such as games and microservices.
According to statistics released by W3Techs on December 6, 2019, PHP’s share of programming languages used on the WEB website server is as high as 78.9%. Among websites with content management systems, 58.7% use WordPress (CMS system developed by PHP), which accounts for 25.0% of all websites.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of what is php? Invented a few years ago. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP and Python each have their own advantages, and the choice should be based on project requirements. 1.PHP is suitable for web development, with simple syntax and high execution efficiency. 2. Python is suitable for data science and machine learning, with concise syntax and rich libraries.

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

PHP is suitable for web development, especially in rapid development and processing dynamic content, but is not good at data science and enterprise-level applications. Compared with Python, PHP has more advantages in web development, but is not as good as Python in the field of data science; compared with Java, PHP performs worse in enterprise-level applications, but is more flexible in web development; compared with JavaScript, PHP is more concise in back-end development, but is not as good as JavaScript in front-end development.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.
