To configure the EditPlus debugging PHP Program Starter Tutorial

Source: Internet
Author: User
Tags configuration php functions php file php debugging tools php tutorial php web development root directory zend

Before I introduced the PHP development tool Zend Studio7 Tutorial, Zend Studio use is actually very memory-intensive, for PHP beginners, today and you share how to configure EditPlus to debug PHP programs, EditPlus configured to do PHP Web site development is not inferior to Zend Studio, EditPlus provide a lot of user tools (Plug-ins), such as PHP automatic completion, PHP function automatically remind and complement the congruent, these are configured EditPlus debugging PHP program to bring convenience , I'll introduce the editplus configuration steps in the PHP tutorial format. preparatory work

In the configuration EditPlus debugging PHP, the first need to download EditPlus, you can go to editplus official website download EditPlus, but in the official website download EditPlus, need registration code, and is English version, no Chinese version, you can online to EditPlus Chinese version for the keyword search, i downloaded is editplus v3.12 build 581 Chinese version, as for the registration code, online Search can be.

In addition you need to install the configuration PHP running environment.

  To configure EditPlus to debug a PHP program

Before using EditPlus to debug PHP, we need to create a new PHP project to facilitate the management of PHP files, so

  Configure editplus Debug PHP program step One: Use EditPlus to create a new project, as shown in

Configure EditPlus new PHP Project

First click to add items, name the project, such as LEAPSOULCN, and then click Add Items, specify a specific PHP program file directory. When debugging PHP, the difference between EditPlus and Zend Studio is that the URL directory address for editplus debugging is the specified directory address, regardless of the project name.

EditPlus Project management function is very weak, feel a bit fake, the left directory does not list the new project, still need to manually select the specific directory of the project, in addition, you can select items in the menu bar project selection of your new project, and then at the bottom of the Project menu will appear the selection of items, Click to open all files for this project. If you want to debug the php file alone, you can also click on the add file, but the overall feeling that this aspect editplus not Zend Studio intelligence, which also gives debugging PHP inconvenience.

  Configure editplus Debug PHP program step two : Set the server address and directory, as shown in

Configure PHP Program Access address (URL) and directory

Use editplus Development Debugging PHP program, must see the PHP Program page execution, we need to configure the host name and PHP directory through EditPlus, as shown in the figure, first select the menu tool preferences, and then click the Add button, In the host name and root directory, respectively, fill in the LocalHost and PHP directory address can be.

At the same time editplus the default browser is IE, you can also choose Firefox Netscape 4 Opera or other browser, such as Google Chrome, but you need to specify the specific location of the program. Configuration complete, save, open a php file, press CTRL+B, you can access this file in the browser.

  Configure editplus Debug PHP program step three : Configure PHP help manual and plugin

The Configuration User tool plug-in is mainly through EditPlus user tools, EditPlus provides 10 groups of user tools, you can put the same kind of tool in a group, and can be redirected to this group. The User tool group uses the following methods

Select the Menu tool User Tool Group specific tool group (for example, I command tool Group 1 for help documentation, and added the PHP Help document to this tool group, the tool menu will be listed at the bottom of the tool group all the tools, the first tool to invoke the Ctrl+1, second, third tool, Press Ctrl+2,ctrl+3 when called, and so on. Here's how to add tool plug-ins and how to use them.

  1, configure the PHP help manual

In the PHP website development, consult the PHP Help manual is essential, editplus provide CHM format PHP help manual, configuration as shown

Using EditPlus to configure the PHP help manual

Click on the User tool, the default EditPlus group name 1 for Group1, click Group Name, I renamed to help document, and click Add Tool, Tool format EditPlus A total of four kinds: program, help file (*.hlp), HTML Help file (*. CHM), keystroke recording, select HTML Help file (*. CHM), menu text input PHP manual, filename Select CHM file specific storage location can be.

When you use Ediplus debugging or writing a PHP program, select the specific function name, press Ctrl+1,editplus will automatically open the PHP help manual and jump to the selected PHP function description Document page. Download the PHP Help document

  2, configure PHP Debugging Tools-Grammar Check

EditPlus Configuration PHP Debugging tool Plug-ins have many kinds, such as Zend Code analysis tools, here I introduce the most basic PHP debugging tools, that is, Php.exe command, in fact, the Php.exe command is also very powerful. As shown in figure

EditPlus Configure the PHP grammar checking tool

As shown in the figure, the command specifies the location of the Php.exe, the parameter is entered-f and clicks on the file path in the right triangle, noting that double quotes are added. The initial directory selection file directory. When used, simply select the Debug Plug-in tool group and press Crtl+1,editplus to debug the PHP program in DOS mode and output the results of the open PHP file, if there is a syntax error, the last line will be the error message and number of lines.

  2, configure PHP Debugging Tools-Function Description

In addition to the previous introduction of the use of the EditPlus configuration PHP help manual, the use of Php.exe can also output functions of the description information, such as the figure

EditPlus Configure PHP Function Description tool

Parameter input-RF, select the current selection in the right triangle, select the specific function name when using EditPlus to debug the PHP program, press Crtl+2,editplus to output the description information of the selected function in DOS mode.

  Configure editplus Debug PHP program step fourth : Set up PHP Auto Completion function

Using Zend Studio's PHP developer, you'll know that Zend Studio is smart, and when you enter a PHP statement or part of a function, Zend Studio gives you the appropriate information and chooses one that automatically completes all of the syntax formats for PHP statements or functions. You simply fill in the code block or parameters can be very convenient. Then in the use of EditPlus PHP website development, the default editplus does not have the corresponding PHP automatic completion rules file, you need to download EditPlus PHP automatic completion file, click to download editplus PHP automatic completion file, recommended download Php_, because the PHP ACP file is relatively new.

Download a good editplus of PHP automatically complete the rules file, unzip and put the PHP ACP file into the EditPlus installation directory, and start to set the PHP automatic completion function, as shown

Configure the EditPlus PHP AutoComplete feature

Select the left setting and syntax, select the file type on the right side of PHP, and click on the auto finish ... Choose PHP.ACP to automatically complete the rules file save, if you do not want to use the EditPlus function, you just check to disable automatic completion of the function can be. Finally restart the next editplus can be used.

Use EditPlus PHP automatic completion of the function, note in the PHP file must enter the complete PHP statement or PHP function, and then press the space to start the automatic completion function, if only a part of the input, by the space is not able to start EditPlus PHP automatic completion function.

  Configure editplus Debug PHP program step fifth : Set PHP function Reminder function

This step is actually just as the use of EditPlus debugging PHP, function automatic completion of the supplementary function, when you can not remember the specific function name, function reminders are very necessary.

First, please download the material file, that is, the Php.ctl file, and then put the extracted php.ctl file into the EditPlus installation directory, and then select the left side of the material file, right click to refresh. When you want to use EditPlus PHP function reminder function, just select the corresponding PHP material file, in the php file input function name part, and then press F2, will be fuzzy lists the corresponding functions, and finally select the PHP function you need to use it.

OK, this configuration editplus debugging PHP program All the steps are introduced, after the configuration of the above steps, you can very good use of editplus to write and debug PHP. Of course, if you have a certain basis, you can also organize php.ctl files, or according to their own use of the custom to organize the automatic completion of the rules of PHP files ACP. Overall configuration editplus is very flexible, and the advantage of being a lightweight PHP development tool is obvious.

  Note : PHP Web Development Copyright, reproduced in the form of links to indicate the original source and this statement, thank you.

Related Article

Cloud Intelligence Leading the Digital Future

Alibaba Cloud ACtivate Online Conference, Nov. 20th & 21st, 2019 (UTC+08)

Register Now >

Starter Package

SSD Cloud server and data transfer for only $2.50 a month

Get Started >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.