Home > Development Tools > notepad > body text

How to configure php in notepad

藏色散人
Release: 2019-11-06 10:08:06
Original
5738 people have browsed it

How to configure php in notepad

How to configure php in notepad?

Notepad is a simple and commonly used editor. Its functions can be extended by installing plug-ins, such as running PHP

Recommended: "notepad usage tutorial"

1 Install notepad, the official download address of notepad is http://notepad-plus-plus.org/ or enter the resource download

The installation is very simple, 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

2 Create a new php document with the following content. Output "Hello World".

<?php
echo "Hello World!<br>";
?>
Copy after login

3 Install the plug-in that compiles and runs the file. Plugin-Plugin Manager-Show Plugin Manager.

How to configure php in notepad

4 Find the NppExec plug-in. Judging from the name of this plug-in, it is the execution of your files. 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.

How to configure php in notepad

5 Restart Notepad to complete the plug-in installation. Plug-in-NppExec-Execute, click to execute, or directly press F6

How to configure php in notepad

6 Enter the command in the pop-up command input window:

   cd $(CURRENT_DIRECTORY)
   D:\phpStudy4IIS\php52\php.exe $(FULL_CURRENT_PATH)
Copy after login

The meaning of the command Yes, go to the current file directory and use the installed php.exe file to run the file.

D:\phpStudy4IIS\php52\php.exe is the installation path of php.

How to configure php in notepad

7 After clicking OK, run the php file

How to configure php in notepad

The above is the detailed content of How to configure php in notepad. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template