A few questions about PHP GTK

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
drayarms
Forum Contributor
Posts: 134
Joined: Fri Dec 31, 2010 5:11 pm

A few questions about PHP GTK

Post by drayarms »

Hello everyone, I have been doing web developing for a little while and just recently decided to make the leap to developing standalone applications. I started learning C++ and JAVA for this purpose, but quickly learned that PHP can also be used to this end, and since I am quite familiar with PHP, I thought it would make sense to start with PHP GTK. But before I jump right in, I have a few questions that I would greatly appreciate some answers for:

Does PHP have any significant advantages/disadvantages over lower level languages such as C++ ? I would imagine that PHP being originally designed for web programming would be less suited for stand alones.

I'm a little confused as to whether the GTK is a graphical user interphase software, the likes of QT and Netbeans, or is it a markup language like HTML, where the widgets are generated with text commands? Please I need a little clarification on that. Also are there any other tools that need to be downloaded to get started besides the GTK?

Finally, am I supposed to learn OOP PHP to get going or is traditional procedural PHP sufficient?


Answers to any or all of the above questions and any other advice would be highly appreciated.

Thanks.
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: A few questions about PHP GTK

Post by Eric! »

I just started looking at php-gtk today. Since event driven GUI design is best done OO, I'm pretty sure procedure PHP isn't enough. However if you are hacker (as opposed to a real developer) like me, you might find a way to avoid a lot of OOP.

Speed will be a big problem and there is no threading. I also have heard rumors that garbage collection is not very good with PHP and there can be leaks. Additional tools you might want is Glade to do the GUI portion of the design.

Take a look at this PDF overview I found in regards to the basic functionality http://elizabethmariesmith.com/slides/p ... esktop.pdf and this http://gtk.php.net/manual/en/tutorials.php
drayarms
Forum Contributor
Posts: 134
Joined: Fri Dec 31, 2010 5:11 pm

Re: A few questions about PHP GTK

Post by drayarms »

thanks for that eric
Post Reply