Home >Backend Development >PHP Problem >what is php file
What is the php file?
The php file is a file with php as the suffix and is a php script file.
PHP is a general-purpose open source scripting language. The syntax absorbs the characteristics of C language, Java and Perl, which is easy to learn and widely used. It is mainly suitable for the field of Web development. PHP's unique syntax mixes C, Java, Perl, and PHP's own syntax. It can execute dynamic web pages faster than CGI or Perl.
Compared with other programming languages, dynamic pages made with PHP embed the program into the HTML (an application under the standard universal markup language) document for execution, and the execution efficiency is higher than that of completely generating HTML tags. CGI is much higher; PHP can also execute compiled code. Compilation can achieve encryption and optimize code running, making the code run faster.
The features of PHP include:
1. PHP’s unique syntax mixes C, Java, Perl and PHP’s own innovative syntax.
2. PHP can execute dynamic web pages faster than CGI or Perl - in terms of dynamic pages, compared with other programming languages,
PHP embeds programs into HTML documents. The execution and execution efficiency are much higher than CGI that completely generates HTML tags;
PHP has very powerful functions, and all CGI functions can be realized by PHP.
3. PHP supports almost all popular databases and operating systems.
4. The most important thing is that PHP can be extended with C and C!
Recommended tutorial: PHP tutorial
The above is the detailed content of what is php file. For more information, please follow other related articles on the PHP Chinese website!