How to open the PHP file?
In fact, PHP files are not specific, and the suffix name is different from that of TXT files. Therefore, you can use NotePad to open the PHP file, but you can only see the code of the file when you open the PHP file directly using notepad software, which does not show the effect of PHP File Execution.
Note that the text files are saved in encoding formats, such as utf8, unicode, and gbk, however, if you directly use NotePad to open the PHP file, garbled characters may occur. For example, if you use NotePad to open the PHP file in utf8 format, you will encounter garbled characters, sometimes, when you use NotePad to open the PHP file in utf8 format and save it, it becomes a file in gbk format, and so on, it will cause some exceptions.
Therefore, we recommend that you use dreameweaver, notepad ++, and other software to open the PHP file. You can also use the legendary editplus, but there will always be one when editplus is saved. bak backs up files (in fact, it is of little use) and feels like a lot of moves, so we recommend using Notepad ++. This software is small and supports code format highlighting, it can be said that it is the best choice for general users. For professional users, dreameweaver or eclipse is recommended.
How to execute PHP files?
To execute the php file, you need to have the php runtime environment on the machine. As for how to configure the php runtime environment, you can search for it on Baidu.
Articles you may be interested in
- Php clears (deletes) the files in the specified directory, and does not delete the directory folder.
- Hosts file location and how to open the hosts file
- PHP analyzes the file header information to determine the type of the uploaded file
- Prohibit web page right-click, copy, save as, View Source file and other functions to implement web page source code protection
- JavaScript and Jquery dynamically load Js files and Css files
- Right-click the xp folder and add a new window to open the folder
- How to Use xampp to build a php VM
- Linux chmod (file or folder permission setting) command parameters and Usage Details