This blog will show you how to create a PHP application with NetBeans,also the beautiful tech demo "wishtree" is attached.
Before get started,you need to install the below softwares and database:
A、JDK 1.6;
B、NetBeans6.5.1 for PHP;
C、Apache HTTP Server;
D、MySQL Database.
You can then start the Apache(which also can be detected in the Windows Task Manager)and MySQL serve after the software and database installation. The next step we can go on with the PHP application creation.
1、Open NetBeans,choose new project,then PHP project,and "PHP Application based on source code(As I've finished the source code in NetBeans 6.7 M3):

2、Choose the next step,open source file(E:\AppServ\www)treewish(As we've used the Apache Server,so the source code should be in the www file),and take GB2312:

3、Go on with the next step,choose"treewish.php"as the index file,click the"finish" button,then you can see the interface as follows:

Then in NetBeans,you can see the treewish project has been imported successfully:

Then just click the "run" button,then you can make a wish in the wish tree,click the green part (the l)of this tree,then make your wish:

After wishing,clikc the"wish"button,then it'll show the "send successfully",and make the wish you've made like a star shining in the tree:

You can also watch the others wishes,as there're many stars :

wish tree source code download
http://developers.sun.com.cn/blog/functionalca/resource/treeWish.zip
Please download it on your computer,and just make a change of the DataBase.php,fullfill the root and password as the real ones of the database you've installed.
You need to be a member of Open Source University Meetup to add comments!
Join this social network