What is a PHP file? How to open the PHP file ?,
We may have encountered PHP files at ordinary times, but many users do not know what files the PHP file is? I don't know how to open the PHP file? To satisfy the curiosity of some users, I will explain the PHP file and how to open the PHP file.
1. What is the PHP file?
Hypertext Preprocessor (PHP) is a scripting language used to embed HTML documents on servers. It is similar to the C language and is widely used in Internet development, easy to learn!
PHP syntax is a mix of C, java, Perl, and PHP-created syntax. (You can see the comparison between php and java) php has a high execution efficiency. PHP can also execute the compiled code to encrypt and optimize code execution, so that the code runs faster. Php is extremely powerful and compatible with all databases. It can also be expanded using C and C ++! Currently, many excellent Internet products are the masterpiece of php, including facebook, Sina, Yahoo, Sohu, and msn. Among the top 500 in the world, 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 the PHP file?
If you only want to open the source code, you can use Notepad as the simplest option. You can open Notepad ++, phpedit, UltraEdit, Dreamwere, and VIM editors.
First, find a PHP file, as shown in.
1) open it with notepad
① Right-click the PHP file and select "open (o)" in the displayed list, as shown in.
② Select notepad in the option of open mode ".
③ You can see the php code in notepad, as shown in.
2) use Notepad ++ to open
① Click the PHP file and select "Notepad ++" in the displayed list, as shown in.
② Then we can see the php code opened in Notepad ++, as shown in. At this time, the php code shows different colors, which is the high brightness that comes with Notepad ++.
3) open it with UltraEdit
Open it with UltraEdit. You can see that the code is displayed in a different high brightness mode. You can adjust the height brightness mode for different editors.
3. How to run the PHP file?
The php language is a background scripting language. Unlike html and js, to run php files directly, you must have a php environment. The php environment is relatively simple to install and there are many tutorials on the Internet. PHP is a very good language. We suggest you study it.