You may not know how to use Notepad to compile and run PHP? Today I will give you a detailed explanation of the specific operations of using Notepad to compile and run PHP. I hope it can help. Where is everyone.
Recommended tutorial: notepad graphic tutorial
##Method/step
Install notepad, select the default settings, and click the next step. You can choose the installation path. After the installation is completed, you can see the Chinese interface of Notepad. Create a new php document with the following content. Output "Hello World". Install the plug-in that compiles and runs the file. Plugin-Plugin Manager-Show Plugin Manager. Find the NppExec plug-in. Judging from the name of this plug-in, it is the execution of each file. Click Install. It needs to be downloaded and installed. If it fails, it may be because the network is not good. Just try again a few times. Restart Notepad to complete the plug-in installation. Plug-in-NppExec-Execute, click Execute, or press F6 directly. Enter the following command in the pop-up command input window: cd $(CURRENT_DIRECTORY)D:\AppServ\php5\ The meaning of the php.exe$(FULL_CURRENT_PATH) command is to enter the current file directory and use the installed php.exe file to run the file. D:\AppServ\php5\php.exe is the installation path of php. After clicking OK, you can run the php program.The above is the detailed content of How to run php code in notepad. For more information, please follow other related articles on the PHP Chinese website!