| GTK is an interesting library of php. This library used for desktop application. | ||
Yap! No kidding here. Php is not only using for server side language. We can develop desktop based application also.Recently PHP-GTK2 is released for PHP5 with documentation. A strong forum also developed for developers.I am really exited about it.After installing GTK we can start an example.
This is a sample program for GTK. It is good practice to check is GTK package available or not. So in first step we should check it. In second step we make an object of window and in third step we attach the title of the window. In fourth step we add a level to show a message And in final step we just say the console to display it. This is the source code of the program now how you should run it. Don’t be confuse that this is a desktop based application so don’t think about the we server. We will run it there. To just test you can do a easy way. But before it I am admitting this is not good process. You can copy the source file in your PHP folder and open the dos console. And just go to the file location and run it like other java program( type: C:/wamp/php>php sample.phpw) If you find the message Otherwise a window will popup for you. This is amazing. |
||
Desktop programming with PHP!
August 13, 2007 · 1 Comment
Categories: PHP








1 response so far ↓
Sam // October 26, 2008 at 11:49 pm |
Wow, that’s awesome!