phpknight Posted July 30, 2007 Share Posted July 30, 2007 I was thinking of using PHP-GTK because it seems to resemble something like Borland's C++ Builder that I like very much. Plus, the project I am working on has more of an application feel. Has anybody out there used it? If so, I have five questions: 1.) Do you always have to open a new window? 2.) Does it work with pop-up blockers enabled? 3.) Is it more secure because you can lock the user into performing certain actions (and therefore do not have to check for as many weird possibilities as normal PHP coding)? 4.) Is it easy to give an application feel using sessions and/or a database? 5.) Do some widgets do things like remember the list selected in a drop-down box, etc? Functions like this make my life a lot easier. I would apprciate any info from users out there, especially because it is probably going to be very difficult for me to install even with the tutorial because I do not know unix very well. Quote Link to comment Share on other sites More sharing options...
fgm Posted July 30, 2007 Share Posted July 30, 2007 The first window is always, necessarily, "new": if there's no first window, you're just doing CLI, not GTK. After that, all child windows can be visually contained within the first, or not (top-level windows), at your choice They are completely irrelevant, since PHP-GTK apps do not execute within the context of a browser, which is all that pop-up blockers control You cannot lock the user: PHP is a scripting language, in source form, so the user can modify it exactly as he wishes. This is completely unlike web programming, in which the user sends the HTTP requests he wishes, but you control what the code actually performs Yes: you can store as many preferences as you wish in the user folder, and link to a local database on his machine... but all of this must be installed before you run the application No, but you can store them in the user folder to restore them later All in all, it looks like you are considering php-gtk as an additional interface for a web application, which it really is not: it requires a local installation on the user PC, and is essentially a possible replacement for other forms of the client side of client-server applications, whether or not these make use of web access underneath. I suggest you take a look at the sample applications at http://www.php-gtk.eu/apps to get a better feel of PHP-GTK. Quote Link to comment Share on other sites More sharing options...
phpknight Posted July 30, 2007 Author Share Posted July 30, 2007 Thanks! Yeah, I think you've understood my motives correctly. I was looking to get it as a part of a web application. I could possibly have users install the GTK created program, but it would probably be less troublesome to just make the web application. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.