Page 1 of 1

A few questions about PHP GTK

Posted: Tue Sep 06, 2011 10:41 pm
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.

Re: A few questions about PHP GTK

Posted: Wed Sep 07, 2011 8:45 am
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

Re: A few questions about PHP GTK

Posted: Wed Sep 07, 2011 2:54 pm
by drayarms
thanks for that eric