Daisy

PHP ("wishtree demo")Application with NetBeans

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.

Tags: apache, mysql, netbeans, php

Share 

Add a Comment

You need to be a member of Open Source University Meetup to add comments!

Join this social network

2 Comments

Daisy Comment by Daisy on May 1, 2009 at 8:05pm
Thx~Maijaliisa Burkert
Maijaliisa Burkert Comment by Maijaliisa Burkert on May 1, 2009 at 12:09pm
Hi Daisy, great blog! I've linked to it from the Sun Student Views and Reviews since you did such a nice job with it.

Webinars

OSUM members get exclusive access to a series of webinars on the most innovative open source technologies via the OSUM Webinar Series.

If you missed any of the previous OSUM Webinars, click here to listen to the replays of the previous sessions.

News

Download Free OpenOffice.org Guide For Creating Large Documents One of the advantages of OpenOffice.org is its ability to handle large word processing documents such as theses and research papers. Download this free guide now and read expert advice on writing with OpenOffice.org.

Get On Board with JavaFX & the Tech Train Game

Get a hands-on introduction to JavaFX when you play the Tech Test Train - Ride the train, test your knowledge of JavaFX technology, and earn points. Click HERE to play.

Working With ZFS Snapshots Download the free ZFS Snapshots How-To Guide to learn how to create and use the backup and restore capabilities of ZFS snapshots.

© 2009   Created by Gary Serda

Badge  |  Report an Issue  |  Privacy  |  Terms of Service