Php development tool Zend studio7 getting started tutorial)

Source: Internet
Author: User
Tags download zend php debug php website

For PHP website developers, it is very important to select a useful php development tool. Currently, the most famous php development tools include Zend studio, eclipse, and editplus, when I first started learning PHP, I used editplus as the php development tool. Later, I gradually transitioned to using Zend studio. editplus is a lightweight php development tool, it is suitable for beginners of PHP. Zend studio has more powerful functions, but you cannot tell which is the best php development tool. It is only the most suitable and not the best, for shoes with some basic PHP knowledge, we recommend Zend studio and editplus for beginners of PHP. I will share with you how to get started with Zend studio7 in the form of tutorials today.


Php development tool Zend studio7 getting started tutorial

 

Introduction to Zend studio7

The PHP development tool Zend studio7 user manual mainly covers the following aspects

1. Download Zend studio7

2. Zend studio7 workspace layout and usage

3. How to Use Zend studio7 to create a project

4. Use Zend studio7 to debug PHP

5. Configure Zend studio7 PHP Manual (PHP user manual)

Download php development tool Zend studio7

I downloaded the php development tool Zend studio7. You can also download Zend studio7 from the Zend official website. After the download and installation process, you need the installation serial number of Zend studio7, there are a lot of web pages, and you can search for them.

Zend studio7 workspace layout and usage

Open the php development tool Zend studio7, And the workspace layout is displayed. It is mainly divided into three columns: The created PHP project on the left, covering various files of the project, and the PHP Code compiling area in the middle, the right side shows the function list area of the current PHP file and the mode switching area such as PHP and PHP debug, which can be used to debug PHP code.

When Zend studio7 is used, the Left area is very useful. You can create a project, view various built-in functions of PHP, and various types, functions, and constants of the project, double-click the corresponding class, function, and constant to access the corresponding PHP file,


List the classes, functions, and constants corresponding to a project.

Note that when you use Zend studio7 to list more information, click a small icon in the lower left corner (show view as a fast view) and select the panel to be listed, drag it to the left, such as PHP functions. Note that the difference between the project outline view on the left and the outline panel on the right is that outline lists constants, functions, variables, and other information in the PHP file currently opened, the project outline view Panel lists all the constants, classes, functions, and other information of the project.

Use Zend studio7 to create a project

To use the php development tool Zend studio7 for PHP website development, you need to create (import) the corresponding project. The method is as follows: Right-click the workspace on the left and select new | PHP project. The new project page is displayed.


How to create a project using Zend studio7

For beginners of Zend studio, you only need to perform the following operations:

1. Enter the project name)

2. Select the specific directory address (existing source) of the project)

3. How to configure the PHP runtime environment by selecting the PHP version corresponding to the PHP runtime environment?

  Note:: When entering the project name, note that it is the same as the project directory name, because the directory in the URL is based on the project name when using Zend studio to debug the PHP program. If they are different, every time I need to modify the URL address, it is very complicated. At the beginning, I did not pay attention to this problem. The program is in the test directory. During debugging, the URL is http: // localhost/phptest/phpinfo. PHP, causing debugging errors.

After creating a project using the php development tool Zend studio7, we sometimes use JS, such as jquery, which requires importing it. By default, the Javascript library is automatically imported. If you do not need a javascript library, you can right-click the project and choose configure | add JavaScript support or remove JavaScript support. So how to add a new JavaScript library? You only need to select the project | properties menu,


Use Zend studio7 to add a new JavaScript Libraries

Click Add library folder on the right of the image and specify the JS library address. Note that if you perform the configure | remove JavaScript support operation, you cannot add other JS libraries.

Use Zend studio7 to debug PHP

Zend studio7 is used for PHP debugging. There are many ways to debug Zend studio7, such as zenddebug and xdebug. There are three debug methods: PHP script, PHP Web page, and phpunit test. As this is the Getting Started tutorial of Zend studio7, I will introduce the simplest way to debug PHP code using Zend studio7-PHP Web page debugging. When you use Zend studio7 for debugging, you only need to select Run | debug as | php web page to switch to the PHP debug mode. The web browser mode appears, displaying the PHP program execution result or error information, you can also set breakpoints for debugging. When you want to return to the PHP code writing mode, you only need to select the small square in the upper right corner and select the PHP mode. You can try more debugging methods on your own.

How to configure Zend studio7 PHP Manual (PHP user manual)

For beginners of PHP, the PHP help user manual is essential and helpful for understanding how to use functions. In Zend studio7, You can import the PHP help user manual, zend studio can import three PHP help user manuals, namely webpage, CHM, and HTML. How can I use Zend studio7 to specify the PHP help user manual?

Select project | Zend tool | options. The following page is displayed.


Add PHP help user manual using Zend studio7

Zend studio7 specifies the PHP help user manual for accessing the Internet through web pages by default, which requires you to always access the Internet. In addition, you can specify the PHP help user manual document in CHM or HTML format, and select file extension. After adding a new one, you only need to click the default button.

After that, you just need to click the function that comes with the corresponding PHP System, right-click and choose open PHP manual menu. It's amazing. Haha.

OK. Now the php development tool Zend studio7 Quick Start Guide has been introduced. More Zend studio experiences require kids shoes to be explored in depth and find the most handy way to use them, still, there is no best php development tool, but only the most suitable php development tool.

Related Article

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.