PHP Development Tools Zend Studio7 Introductory Tutorial

Source: Internet
Author: User
Tags format functions php file php and php code php debug php script zend


For PHP site developers, the choice of a good PHP development tool is very important, the current more well-known PHP development tools have Zend Studio, Eclipse, EditPlus, and so on, when I just started learning PHP, The PHP development tool used is editplus, and then slowly transitions to more use of Zend Studio, relatively editplus is a lightweight PHP development tool for PHP beginners to use, Zend Studio features more powerful, But you have to say which is the best PHP development tools, that can really not understand the way unknown, only the most suitable, not the best, for a certain basic knowledge of PHP children's shoes I recommend using Zend Studio, for PHP beginners, recommend the use of EditPlus. Gossip less, today and everyone in the form of tutorials to share how to quickly get started using Zend Studio7.



PHP Development Tools Zend Studio7 Introductory Tutorial






Zend Studio7 Introductory Tutorial Overview



PHP Development Tools Zend Studio7 Tutorial Manual covers the following areas



1, download Zend Studio7



2, Zend Studio7 work area layout Introduction and use method



3. How to use Zend Studio7 to establish project



4, the use of Zend Studio7 debugging PHP method



5, configure the Zend Studio7 PHP Manual (PHP use manual) method



Download PHP Development Tools Zend Studio7



I am through  Download PHP development tool Zend Studio7, you can also download Zend Studio7 through the Zend website, download the installation process you need to have Zend Studio7 installation serial number, online a lot, search a use on it.



Layout and usage of Zend Studio7 working area



Open the PHP development tool Zend Studio7, the workspace layout in the eye, mainly divided into three columns, the left for the establishment of the PHP project, covering the various files of the project, the middle for the PHP Code coding area, right for the current PHP file function list area and php,php Debug, and other mode-switching areas that you can use to debug PHP code.



In the use of Zend Studio7 the left area is very useful, that is, you can create a new project, you can also see the various functions of PHP and the project itself to write a variety of classes, functions, constants, etc., just double-click the corresponding class, function, constant can enter the corresponding PHP file, as shown



Lists the corresponding classes, functions, constants, etc. for the project



Notice here that when you use Zend Studio7 to list more information, click on a small icon in the lower left corner (show view as a fast view), select the panels you want to list, and then drag them to the left section, such as PHP functions. Also note that the difference between the left side of project outline view and the right outline panel is that outline lists the constants, functions, variables, and so on in the current open PHP file, and project outline The view panel, as the name suggests, contains information such as constants, classes, functions, and so on for the project.



Building projects using Zend Studio7



Using the PHP development tool Zend Studio7 for PHP website development, you need to establish (import) the corresponding project, methods are as follows: Right-left workspace, select New PHP Project menu, will appear new project interface



How to create a new project using Zend Studio7



Generally for Zend Studio entry users, you just do the following:



1, fill in the project name (program name)



2, select the specific directory address of the project (existing source)



3, choose PHP operating environment corresponding PHP version (PHP versions) how to configure the PHP operating environment?



  Note : When filling in the project name, note that the directory name is the same as the project, because the directory in the URL is the project name when you use Zend Studio to debug the PHP program, and if it is inconsistent, you need to modify the URL address every time, it's tedious, I started out because I didn't pay attention to this problem, the program in the test directory, debugging because the URL is http://localhost/phptest/phpinfo.php, resulting in debugging errors.



After using the PHP development tool Zend Studio7 New project, sometimes we will use JS, such as jquery, which needs to import it. The default JavaScript library is automatically imported, and if you don't need a JavaScript library, you can do so by selecting the item and right-clicking the Configureadd JavaScript support or remove JavaScript support. So how do you add a new JavaScript library? You just select the ProjectProperties menu, as shown in



Add a new JavaScript libraries with Zend Studio7



Click the Add library Folder on the right of the map to specify the specific JS library address. Note that if you perform the previous Configureremove Javascript support operation, you cannot add other JS libraries.



How to debug PHP using Zend Studio7



Use Zend Studio7 for PHP debugging, there are many ways, Zend Studio7 Debug There are several kinds of, such as Zenddebug,xdebug, there are three ways to debug: Php Script, php Web Page, PHPUnit Test. Since this is the introductory tutorial for Zend Studio7, I introduce one of the easiest ways to use Zend Studio7 debug PHP Code-php Web page debugging, when you use Zend Studio7 debugging, just select Rundebug asphp Web page can be transferred to PHP debug mode, there will be a Web browser mode, showing the results of PHP program execution or error messages, of course, you can also set breakpoints for debugging. When you want to go back to PHP code writing mode, you just select the upper right corner of the box, select the PHP mode. More debugging methods you can try to understand yourself.



How to configure Zend Studio7 php Manual (PHP usage manual)



For PHP beginners, PHP Help to use the manual is essential to understand the use of the function is very helpful, in Zend Studio7 can import PHP help manuals, Zend Studio can import three kinds of PHP help manuals, that is, Web pages, CHM, HTML three format, how do you use Zend Studio7 to specify the PHP help manual?



Select Projectzend tooloptions menu, the following interface appears



Add PHP Help manuals using Zend Studio7



As shown in the figure Zend Studio7 by default specifies a Web-accessible PHP help manual, which requires you to be able to access the extranet, in addition, you can specify a CHM or HTML format PHP help use the manual document, note that select the file Extension. When you have finished adding new, just click on the default button to complete.



Then as soon as you click the corresponding PHP system with the function, right click on the Open PHP manual menu. Very magical. Ha ha.



OK, this PHP development tool Zend Studio7 Quick start to use the tutorial is finished, more Zend Studio use experience more need children's shoes dig deeper, find their most handy use method, or that sentence does not have the best PHP development tools, Only the most appropriate PHP development tool.



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








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.