The method of configuring php in notepad
This article is about how notepad configures php. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
How does notepad configure php?
Notepad++ is a concise and commonly used editor that can be extended by installing plug-ins, such as running PHP
1 install the official download address http://notepad-plus-plus.org/ of notepad++,notepad++ or go to the resources for download
Installation is easy, choose the default settings, and you can do the next step. You can choose the installation path. After the installation is complete, you can see the Chinese interface of Notepad++
2 create a new php document with the following contents. Output "Hello World".
Install the plug-in that compiles and runs the file. Plug-in-Plugin Manager-Show Plugin Manager.
4 find the NppExec plug-in, from the name of this plug-in is the execution of your files. Click Install. Need to download and install, if the failure may be due to a bad network, try again a few times.
5 restart Notepad++, to complete the plug-in installation. Plug-in-NppExec-Execute, click execute, or press F6 directly
6 enter the following command in the pop-up command input window:
Cd $(CURRENT_DIRECTORY) D:\ phpStudy4IIS\ php52\ php.exe $(FULL_CURRENT_PATH)
The meaning of the command is to go to the current file directory and run it using the installed php.exe file.
D:\ phpStudy4IIS\ php52\ php.exe is the installation path for php.
7 after clicking OK, run the php file
Thank you for reading! This is the end of the method of configuring php in notepad. I hope the above content can be of some help to you so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.