The new version of NetBeans makes PHP development easier _ PHP Tutorial

Source: Internet
Author: User
Tags php debugger php editor mercurial version control system
The new version of NetBeans makes PHP development easier. Through understanding the integrated development environment of this version of NetBeans, I think this upgrade to PHP is worth further understanding, let's take a look at its understanding of the most popular PHP development today through the integrated development environment of this version of NetBeans. I think this upgrade to the PHP version deserves our in-depth understanding, let's take a look at the support provided by PHP, the most popular development language today.

You can download NetBeans IDE 6.1 Early Access for PHP from the official NetBeans website. this version is advantageous for developers to split from any previous versions, this allows you to use it securely without worrying about disrupting any existing production and development environments.

Installing this version of NetBeans on the main supported platforms (such as Windows, Linux, and Mac OS X) is very easy to understand, however, to use it for PHP development, you still need to have some preliminary settings. You need to install and run a PHP 5.x, a PHP debugger (XDebug is strongly recommended), a Web server (such as Apache), and a database server (obviously MySQL has a great advantage ).

If you are already developing PHP, these prerequisites may have been met. if not, you need to deploy and debug these environments first. For those who are too troublesome, you can try to install a separate software package, such as XAMPP that supports Windows or Linux.

Advantages

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

Here you can get all the functions required in the integrated development environment, such as PHP syntax highlighting, code autocompletion, help prompt, and error identification.

The code completion function can be intelligently sensed. Therefore, if you enter $ in the PHP instruction section, it allows you to access runtime variables (such as $ _ SERVER ); however, $ is a common symbol anywhere on the page. You can drag and drop any HTML elements, such as tables and form forms. It also provides common PHP editor functions such as code folding, format adjustment, and easy-to-use navigation.

However, writing an application is not just as simple as stacking code. In terms of databases and servers, this NetBeans version also has many beautiful features. Although NetBeans includes support for many different servers and databases, it is not surprising that MySQL is a product of Sun. In this development environment, you can easily connect to a MySQL database server so that you can directly interact with the database in your PHP application.

You can also create. SQL File (for some reason, Sun does not provide a menu option for creating an SQL file) and uses it to query or modify the database. For those friends who are used to Rails's set-up/tear down method, they can easily use these text files to define your database during development. At the same time, when debugging, you can even manually perform a special query and view the returned data results.

Other supported file types include CSS, XHTML, XML, and JavaScript. You can also use common editor support functions, such as different code colors. In terms of CSS support, it also provides a style generator that supports previewing, allowing you to view the style effects of your application more intuitively. In JavaScript, this version of NetBeans is also very easy to use and supports dynamic languages and step languages. after all, this is a key component of NetBeans.

Another free feature is version control. it supports CVS, Subversion, and the current Mercurial version control system.

Weaknesses in the US

With so many advantages, let's take a look at its shortcomings. after all, we cannot forget that this is an early preview. In this version, some more beautiful features are missing, making it look rough. One of them is the control of the browser, which can be improved. When running your application, you use the default browser, but for those who want to test different browsers in the integrated development environment, A better way is to let them select the browser type. In addition, this version has few features for refactoring support, which we hope to see in the final version.

But in general, the new version of NetBeans is still making great strides, and it is gradually becoming one of the best integrated development environments for dynamic languages and step-by-step programming. Despite the strong challenges it faces at the same time, considering its strong support for Ruby, JavaScript, and now PHP, it has begun to consider improvements to Jython, we have reason to believe that NetBeans has a better future.

...

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.