Home >Backend Development >PHP Problem >What is the file format of php?

What is the file format of php?

藏色散人
藏色散人Original
2019-08-08 11:06:329675browse

What is the file format of php?

What is the file format of php?

php is the php script file format. If you want to open it, you can use edit Servers such as Notepad, phpedit, UltraEdit, Dreamwere, VIM, etc. can all be opened.

1. What is a PHP file?

PHP (Hypertext Preprocessor) hypertext preprocessor is a scripting language that is executed on the server side and embedded in HTML documents. , the language style is similar to C language, it is widely used in Internet development, and it is easier to learn!

PHP syntax mixes C, java, Perl and PHP's own syntax. (You can see the comparison between PHP and Java) The execution efficiency of PHP is extremely high; PHP can also execute compiled code. Compilation can achieve encryption and optimize code running, making the code run faster. PHP is extremely powerful and can be compatible with all databases. You can also use C and C to expand the program! Currently, many excellent products on the Internet are masterpieces of PHP, including Facebook, Sina, Yahoo, Sohu, MSN, etc., and the world's top 500 companies. 394 of them use PHP technology. According to statistics, more than 70% of the world's traffic comes from the PHP language!

2. How to open a PHP file?

If you just want to open and view the source code, the simplest way is to use Notepad. Notepad, phpedit, UltraEdit, Dreamwere, VIM editor, etc. can all be opened.

First find a PHP file, as shown in the figure below.

1) Open it with Notepad

①Right-click the php file and select "Open (o)" in the pop-up list, as shown in the figure below.

What is the file format of php?

②Select "Notepad" in the option of opening method.

③Then you can see the php code in Notepad, as shown in the figure below.

What is the file format of php?

2) Use Notepad to open the

①mouse php file, and select "Notepad" in the list that appears, as shown in the figure below.

What is the file format of php?

② Then you can see the php code opened in Notepad as shown below. You can see that the php code displays different colors at this time. This is the highlight that comes with Notepad. .

What is the file format of php?

3) Open with UltraEdit

Open with UltraEdit, you can see that the highlighting of the code display is different. Different editors display different highlighting. You can adjust it yourself.

What is the file format of php?

3. How to run PHP files?

The php language is a background scripting language. Unlike html, js runs directly. If you want to run php files, you must There is a php environment. The installation of the php environment is relatively simple, and there are many tutorials on the Internet. PHP is an excellent language and I recommend that you learn it.

The above is the detailed content of What is the file format of php?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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