New NetBeans makes PHP easier _php tutorials

Source: Internet
Author: User
Tags php debugger php editor mercurial version control system version control system netbeans
By understanding this version of the NetBeans integrated development environment, I think this updated version of PHP is worth digging into and looking at how it supports PHP, the most popular language for development today.

From the NetBeans website you can download NetBeans IDE 6.1 Early Access for PHP separately, and for developers, this version is a good thing to do with any previously existing version, so that you can use it safely, Without having to worry about destroying any existing production development environment.

Installing this version on the main platforms it supports, such as Windows, Linux, and Mac OS X. NetBeans is a very straightforward process, but for PHP development you need to have a little bit of initial setup. You need to install run a PHP 5.x, a PHP debugger (strongly recommended using Xdebug), a Web server (such as Apache) and a database server (obviously MySQL has a big advantage).

If you are already developing PHP, these prerequisites may already be in place, and if not, then you need to deploy and debug the required environments first. For those of you who have trouble, try installing a separate package that integrates these, such as Windows or Linux-enabled XAMPP.

List of advantages

Once these environments are ready, it's easy to create a PHP project, all you need to do is choose File > New project, or click the New Item button on the toolbar. From the New Project dialog box you can enter a directory of your source files (such as PHP, XHTML, and CSS), and the directory where you want to deploy the files on the server, as well as the hyperlink URL for your application. You can also choose to create a index.php file as the default document for your application.

Here you can get all the features you need in an integrated development environment, such as PHP syntax highlighting, code completion, help tips, error identification, and more.

The code completion function is IntelliSense, so if you enter $ in the PHP instructions section, it will allow you to access runtime time-varying quantities (such as $_server), but on the page anywhere else, $ is just a normal symbol. You can drag and drop any HTML element, such as tables and form forms. It also features a common PHP editor like code folding, formatting, and easy-to-use navigation.

But writing an application is more than just a stack of code. The NetBeans version also has many beautiful features in terms of database and server. Although NetBeans contains support for many different servers and databases, it is not surprising that the best support is MySQL, after all, MySQL is the Sun's own product. In this development environment you can easily connect a MySQL database server so that you can interact with the database directly within your PHP application.

You can also create a. sql file (but for some reason, Sun does not provide a menu option to create a SQL file) and use it to query or modify the database. For those of you who are used to the rails set-up/tear down approach, it's also easy to use these text files to define your database during the development process. At the same time, when you are debugging, you can even manually make a special query and view the results of the returned data.

Other supported file types include CSS, XHTML, XML, JavaScript, and so on. You can also use common editor support features such as code colors. In terms of CSS support, it also has a preview-enabled style Builder that gives you a more intuitive view of the style of your app. In JavaScript, this version of NetBeans is also very useful, supporting dynamic language and footstep language, which is, after all, a key component of NetBeans.

Another powerful feature that is free to use is version control, which supports CVS, subversion, and now the mercurial version control system.

Ointment

Having said so many advantages, let's take a look at its shortcomings, after all, we can't forget that this is an early preview version. In this version, some of the more beautiful features are missing, making it somewhat rougher. One of the performance is the browser control, it should be able to do a little better. You are now using your default browser when running your application, but for those who want to test different browsers in an integrated development environment, it's a good idea to let them choose which browser type to use. In addition, this version has few features for refactoring support, which is what we want to see added functionality in the final version.

Overall, however, the new version of NetBeans is making progress, and it is becoming one of the best integrated development environments for dynamic language and footstep programming. Despite its formidable challenges at the same time, given its strong support for Ruby, JavaScript, and now PHP, and the support it has begun to consider for jython improvements, we have reason to believe that NetBeans has a better future.

http://www.bkjia.com/PHPjc/364188.html www.bkjia.com true http://www.bkjia.com/PHPjc/364188.html techarticle by understanding this version of the NetBeans integrated development environment, I think this updated version of PHP is worth our in-depth understanding of PHP's most popular development today ...

  • 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.