An Oracle blog about NetBeans for PHP

Screencast about NetBeans PHP IDE and WordPress

I have created my first screencast, on how to set up
WordPress as a NetBeans project. I also show how to write
a simple plugin for WordPress. The plugin will look through the content of
displayed blog entries to replace the word "NetBeans" with a link to
the NetBeans.org site.

The content of this screencast is based on Jan's entry Configuring a NetBeans PHP Project for WordPress  and my entry My first WordPress plugin in NetBeans. But you can see more features of NetBeans in the screencast, not only ones specific to PHP. The length of the video is 8 minutes and it's published on NetBeans.TV.

Join the discussion

Comments ( 21 )
  • Jacob Wednesday, August 20, 2008

    Nice demonstration. I haven't used WordPress yet...

    You didn't make use of the code completion with functions though...

    It automatically selects the first parameter for you, but then when you finish typing the first one, hit tab, and you will edit the second :P

    Sorry knit picking... :D

  • Petr Pisl Wednesday, August 20, 2008

    Hi Jacob,

    thanks. I was a little nervous, so I haven't used all the features, which are offered. I'm glad that you like it.



  • Varun Wednesday, August 20, 2008

    Amazing Video, I think Roman would love it too!

  • optik Wednesday, August 20, 2008

    Netbeans has good starting point for PHP support, but there is some editing things, for which is eclipse PDT better

    - code navigation via jumps between to definitions of classes, methods, functions in the code, netbeans has this feature (ALT-B), but it doesn't work in very well

    when I have this code

    public function routeStartup (Zend_Controller_Request_Abstract $request)




    jumps when I am in the AppBaseUrl or in the setHost doesn't work, in PDT yes

    - no class/method function browser for all classes, methods, functions in the project with searching, navigator works only for current file

    - IDE is much slower then eclipse pdt

  • Flo Wednesday, August 20, 2008

    Nice video.

    Next thing I've to try is setting up xdebug for my installation.

    And by the way should I file a report in IZ if i've got any proposals for minor improvements?

    keep it up!


  • Petr Thursday, August 21, 2008

    Hi Optik,

    thanks for your comments. The NetBeans support is in beta and yes there are bugs. This is the first version, which has been developed during a few month. Other IDEs were developed for much longer time. I'm just want to say that this is mainly question about resources and time. Every one can help, file a bug, write comments etc.

    >jumps when I am in the AppBaseUrl or in the

    >setHost doesn't work, in PDT yes

    This is a bug and I'm working on this. You can track it or add comments: http://www.netbeans.org/issues/show_bug.cgi?id=143426

    >- no class/method function browser for all

    >classes, methods, functions in the project with

    >searching, navigator works only for current file

    You are right, this is missing feature. Unfortunately we hadn't time to do it. You are not only one, who is complaining about this, I will see what I can do after stabilizing current features.

    >- IDE is much slower then eclipse pdt

    We are aware about this. Beta doesn't contain some my performance fixes, which I did so far mainly in code completion area. I hope that we will be able to improve in others areas and the first version will not suffer any slowness.

    Thanks for your comment and I hope that you will try NetBeans after few weeks again and the IDE fits you.



  • Petr Thursday, August 21, 2008

    Hi Flo,

    >Next thing I've to try is setting up xdebug for my


    What OS do you use?

    >And by the way should I file a report in IZ if

    > i've got any proposals for minor improvements?

    Sure. If you file new improvements, then the issue can be easily tracked. The discussion can be done in issuezilla, which has some advantages and in the end we know, what people want.



  • Flo Thursday, August 21, 2008

    Alright, thanks for your response.

    I use Windows XP sp2 with xampp. I just figured out how to get xdebug running. I only had to change some commenting in the php.ini, it also said i can only use Zend (I think ZendExtensionManager.dll) OR Xdebug in the ini file. It is now listed in my phpinfo() output and xdebug.remote_enable is on.

    Seems like it's working now in NB :)

    Greetings Flo

  • James Thursday, August 21, 2008

    Thanks for the screencast. It was REALLY informative.

    I learnt quite a few new things, even after having set all this up previously...

  • Petr Thursday, August 21, 2008

    Hi Flo,

    some people have a problem to set up xdebug on Win and xampp. Could you exactly describe, what you changed in the php.ini and also in which php.ini? I would like to check it with one my colleague, who has exactly the problem, but I haven't had time to install this combination on my machine and solve it.



  • Flo Friday, August 22, 2008

    Hi Petr,

    Here's exactly what I've done:

    - Windows XP SP2

    - XAMPP (basic package) version 1.6.7

    - Netbeans 6.5 Beta or nightly build

    The xdebug.dll should already exist in the folder xampp/php/ext/ alternatively you can download it or the newest version from the xdebug website.

    You'll find the correct php.ini for web stuff in xampp/apache/bin

    The other php.ini are for CGI/CLI mode.

    Source http://www.apachefriends.org/en/faq-xampp-windows.html#phpini

    And this is what I've changed in the php.ini, just commenting and uncommenting some lines which should already be there. Deactivate [Zend] and activate [XDebug] and adapt your paths. Then restart your Apache and it should work in Netbeans with the default settings.


    ;zend_extension_ts = "C:\\xampp\\php\\zendOptimizer\\lib\\ZendExtensionManager.dll"

    ;zend_extension_manager.optimizer_ts = "C:\\xampp\\php\\zendOptimizer\\lib\\Optimizer"

    ;zend_optimizer.enable_loader = 0


    ;zend_optimizer.license_path =

    ; Local Variables:

    ; tab-width: 4

    ; End:


    ;; Only Zend OR (!) XDebug










  • Petr Friday, August 22, 2008


    thanks for this. You saved me time.



  • Baudry Wednesday, October 1, 2008


    Have you got a problem with xampp on mac I install it but mysql don't run Must you install phpmyadmin separetly?

  • Petr Thursday, October 2, 2008

    Hi Baudry,

    I don't have a mac. Could someone with a mac machine to help?



  • DominoMill Monday, November 24, 2008

    Cool stuff. Lot of useful information in the 35mins screen cast. I missed how the plug-in to replace text gets called though. Is it that "all" the plug-ins always get called?

  • Petr Tuesday, November 25, 2008

    Hi DominoMill,

    this screencast has only 8:10 minutes :).

    The plugin registers the function correctNetBeans is a content filter. It means that wordpress will be call the function for displaying every content.

    I hope this help.



  • Anirudh K Mahant Saturday, April 11, 2009


    Nice demo, BTW I am still scratching my head with NetBeans IDE to find out the magical WORD-WRAP option and also messed up setting up X-Debug.

    Its disappointing to see that two of the biggest IDE for development ie. Eclipse and Netbeans both are missing WORD-WRAP option?

    Now just fire up the good old Notepad and there you have it :) SIMPLE

  • Stas Monday, April 13, 2009

    Hi, everyone.

    I suggest also to try free PHP IDE <a href="http://www.codelobster.com/">Codelobster PHP Edition</a> with special WordPress plug-in.



  • Stas Monday, April 13, 2009

    Hi, everyone.

    I suggest also to try free PHP IDE Codelobster PHP Edition (http://www.codelobster.com/) with special WordPress plug-in.



  • pete Thursday, May 7, 2009

    Is this a joke or what? Your english (if one can call that english anyway...) is hardly or not understandable. If ya a going make tutorial ya shouda speaka da language ya going to use otherwise your 'tutorials' are only usefull for your self.

  • Tiffany Cuff Links Friday, November 13, 2009

    this is cool, this is what we want dude......

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