How to open the PHP file and execute the PHP File

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.