An Oracle blog about NetBeans for PHP

NetBeans 6.9 RC 1 is available

The first release candidate of NetBeans 6.9 is now available. You can download and read more here. So far there wasn't any show stopper in the PHP area and we hope that the final build will be realeased according the plan.

Join the discussion

Comments ( 22 )
  • Jasmo Thursday, May 27, 2010

    PHP formatting does not provide me any choice, how i would like to format parenthesis?

    Now it puts it like:

    function foo(){


    I'd like to have it newline, as it was 6.8

    function foo()



    If the setting has re-located somewhere, please tell me :)

  • gawan Thursday, May 27, 2010

    is there smarty also? I cannot see it...

  • Tom Thursday, May 27, 2010

    I believe PHP formatting has been extended - not relocated. However: you need to select "PHP" as language (nothing new at this point AFAIK). Smarty is an optional Plug-in which is not there by default. You need to install it using the Plug-in manager. Just do a search for "smarty". Remember that this feature is beta.

  • gawan Thursday, May 27, 2010

    smarty isn't in Pug-in manager... Shall I add some extra "plugin repository" ?

  • Jasmo Thursday, May 27, 2010

    @Tom, ah stupid me, didn't see that there's more Categories below PHP..

    When i looked again, there's a lot wonderful options. Great!

  • Petr Pisl Thursday, May 27, 2010

    Smarty is not a part of the standard distro and so far is on the dev autoupdate. There wasn't a time to test it with RC. It should be available soon. If you don't want to wait, you can register the dev autoupdate and install it from the dev.

  • Bruce Thursday, May 27, 2010

    Formatting 2000 line php files works better in Netbeans 6.8 than 6.9rc1. Sometimes, it is necessary to reformat such a large page in 6.8, but the result is pretty.

    In 6.9rc1, code at the end can lose all indenting (shoved left), and single line php tags are broken. Ex:





    This seems to be more of a problem with lines that exceed 80 columns.

    It looks that Netbeans still takes a day to scan files on Ubuntu. Afterwards, performance is fine. This is not a problem on Windows. Note that scanning overnight does not seem to help.

    Worse, this day of scanning affects the whole system, making it difficult to even open a terminal to renice netbeans.

  • Petr Pisl Thursday, May 27, 2010

    Please file a bug for the formatter, I will try to fix it asap.

    Regarding the scanning, there were some fixes in the scanning infrastructure that should help, but there were in RC1 already. Strange. How many files does your project have?

  • dGo Friday, May 28, 2010


    I've had this kind of issues in the past...

    Actually, it was because somehow, the project files got corrupted and Netbeans tried to scan more or less my whole Computer.

    Go into the project file private.properties and make sure the paths that are indicated there are correct.

    I don't know about other OS but I had this problem on Ubuntu aswell.

    To the Netbeans team...

    You guys rule !!!! Thanks a lot for this great tool... especially the Zend FrameWork integration... oh and the INI-files syntax coloring make my work so much lighter !

    The only thing I am still missing in NB, is some wordwrapping... but this is not that annoying when used to it

  • Tom Friday, May 28, 2010

    @Bruce I guess this is due to the formatting rule "Options" > "Formatting" > "PHP" > "Spaces" > "Other" > "Before closing PHP".

    This option is activated by default and does not recognize that the closing PHP-tag in this case is a short-tag, which should be treated differently.

  • Petr Pisl Friday, May 28, 2010

    There was a bug that set as a test folder whole disk. This is mentioned by dGo. Please check the paths in your project, whether are properly set up.

    @Tom - I think you have find a bug in the formatter. You are right, the formatter doesn't probably understand the short tags. I'm afraid that the fix I will not be able to add into the NetBeans 6.9.

  • kaiser Zaido Friday, May 28, 2010

    Greate IDE, but one major issue is still actual.

    Please, do working with FTP much better.

    I need to work with the project with about 18000 files, so how I tried to do this - first I've added the remote host and wait for 2 houre while NetBeans will build hierarchy for FTP folders (why you can't make it more dynamic? list top folders and than give an ability to user to choose which folders he need. After it NetBeans can explore them.). Then I choose all of folders what I need and waited for 4 hours while they being downloaded.

    Is this end? No. No there is only one place from what I can work with this project - NetBeans. If I will change something from another environment it will remain unnoticed by NetBeans and it will overwrite new file without any warning.

    What if I have 5 sites each week which I need to analyze. I want to have an ability to work with FTP directly...I very want to have it.

    Only Zend Studio 5.5 can comfort me, how long it will be enough? Please, create a temple from FTP functionality and implement the best ever FTP abilities for NetBeans.

  • dGo Friday, May 28, 2010


    I just noticed one, rather useful, element that is missing.

    It used to be possible to attribute a shortcut key to the "Navigation > Go to View" and the "Navigation > Go to View" contextual menus.

    Will this be implemented in the final release ?



  • ZF view scripts Tuesday, June 1, 2010

    Hi, is there a way to set up the PHP syntax highlighter to render the PHP code inside PHP tags in Zend view scripts (.phtml) with a different background? I only know how to setup the php code bg globally (for all php scripts).

    It would greatly help with the code clarity IMO. These view scripts are often filled with tens of small php jump ins/outs

  • s21 Tuesday, June 1, 2010

    Is there a way to disable the "Checking for external changes"?

    Sometimes it gives a suspended message and netbeans freezes

    I use netbeans in a Vista machine

  • Petr Pisl Wednesday, June 2, 2010

    @s21: Based on your question I have wrote new entry today. See http://blogs.sun.com/netbeansphp/entry/enable_auto_scanning_of_sources

  • xplo Friday, June 4, 2010


    One thing that keep me from trying more Netbeans is autocompletion compared to PDT.

    $this->myVar = new Object();

    $this->myVar-> //NO AUTO COMPLETION

    the crazy thing is that this $var if you use symfony framework will be autocompleted in the view layer.

  • NR Friday, June 25, 2010

    Big fan of netbeans on Windows.

    Since my switch to ubuntu, I can't get Netbeans to behave normally. The performance is very bad, even moving the caret back and forth in a line with code has an unbearable delay...

    Any help?

  • dGo Friday, June 25, 2010


    You probably have errors in your code then... cuz this definitely works correctly in NB.



    I have been running NB on Ubuntu for two years now and did not encounter this kind of issue...

    Sometimes, while NB is scanning the files, it can be a little slow... but once the scanning is done, it should be ok.

    What are your hardware specs ?

    What JRE did you install ? I am running openjdk-6-jre...

  • guest Sunday, June 27, 2010


    Thanks for the feedback.

    I'm running openjdk-6-jre, via aptitude install default-jre on ubuntu lucid lynx (10.04).

    Running on an Alienware m11x: 4GB, core2duo 1.3 ghz.

    Could this be related to this issue: http://stackoverflow.com/questions/229763/how-to-improve-netbeans-performance/522680#522680

  • laser epilasyon Friday, April 1, 2011

    La depilación láser, nuestro país se ha convertido en el método más utilizado para la eliminación del vello.

    El propósito de este sitio web para informar a aquellos que necesitan Laserepilasyon.net preparado y la depilación láser con el trabajo que usted puede encontrar respuestas a las preguntas acerca de la mente-montado.

  • &#3649;&#3629;&#3619;&#3660; Monday, April 25, 2011

    I have been running NB on Ubuntu for two years now and did not encounter this kind of issue.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.