Ekate Posted March 30, 2007 Share Posted March 30, 2007 Hello, Does anyone worked with gtk extension of php? I'm just thinking is it a good idea to make windowed application using php,Apache,MySQL Any comments are appreciated, thank you Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/ Share on other sites More sharing options...
utexas_pjm Posted March 30, 2007 Share Posted March 30, 2007 GTK is used to write standalone client side GUI apps. You wouldn't use Apache / MySQL. Best, Patrick Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-218198 Share on other sites More sharing options...
448191 Posted March 30, 2007 Share Posted March 30, 2007 MySQL is suitable for desktop applications though. I've used it once for a VB.NET database app. But yeah, PHP-GTK is intended for desktop applications. So typically you wouldn't use Apache. Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-218201 Share on other sites More sharing options...
utexas_pjm Posted March 30, 2007 Share Posted March 30, 2007 MySQL is suitable for desktop applications though. I've used it once for a VB.NET database app. But yeah, PHP-GTK is intended for desktop applications. So typically you wouldn't use Apache. While MySQL may certainly be used for persistent storage in client applications it does introduce a fairly cumbersome system requirement. Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-218207 Share on other sites More sharing options...
448191 Posted March 30, 2007 Share Posted March 30, 2007 Hey, no argument from me. At the time, I had a choice: MSSQL Express or MySQL. I chose MySQL, mostly because I am more familiar with it. Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-218230 Share on other sites More sharing options...
utexas_pjm Posted March 30, 2007 Share Posted March 30, 2007 I chose MySQL, mostly because I am more familiar with it. ... but partly because it didn't have MS in it? Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-218337 Share on other sites More sharing options...
448191 Posted March 31, 2007 Share Posted March 31, 2007 LOL... No, not really. Another reason was it easier to integrate a pre-setup database in the NSIS installer for the app. It didn't require any extra registry keys etc either. I just used NSIS to install the service (with a customized name), setup registry keys for the whole of the app and done. Yes that increased the required diskspace by a good 50 meg, but size wasn't really an issue. Admittedly I didn't look into the requirements to integrate MSSQL. So maybe you do have a point. I just assumed MSSQL would be harder to integrate. Anyway, wasn't this thread about PHP-GTK? By my own rules posted in the 'READ ME' sticky the topics should be relevant to php... :-X Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-218539 Share on other sites More sharing options...
Daniel0 Posted April 1, 2007 Share Posted April 1, 2007 Another option might be flatfile databases such as an XML file. It doesn't require anything else than a parser. Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-219434 Share on other sites More sharing options...
448191 Posted April 2, 2007 Share Posted April 2, 2007 You dont create an XML file with 10k+ entries. Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-219584 Share on other sites More sharing options...
trq Posted April 2, 2007 Share Posted April 2, 2007 You dont create an XML file with 10k+ entries. No, but an sqlite db would handlethat with ease. In my experience it has actaully been more efficient than mysql. Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-219800 Share on other sites More sharing options...
448191 Posted April 2, 2007 Share Posted April 2, 2007 You are absolutely right about that. Unfortunately I didn't know about sqlite at the time. Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-219923 Share on other sites More sharing options...
Nameless12 Posted April 19, 2007 Share Posted April 19, 2007 GTK is used to write standalone client side GUI apps. You wouldn't use Apache / MySQL. Best, Patrick GTK is actually not used to write standalone apps. What you said is basically that all GUI apps are standalone and that is not true most businesses rely on their database and as a result so does their software. I would imagine most GTK apps are actually backends to various web pages. Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-233487 Share on other sites More sharing options...
utexas_pjm Posted April 19, 2007 Share Posted April 19, 2007 What you said is basically that all GUI apps are standalone and that is not true most businesses rely on their database and as a result so does their software. LOL - That is not at all "basically" what I said. The OP was talking about using GTK within the confines of a webserver. By using the word "standalone" I was merely trying to assert that PHP-GTK is used to create client side GUI applications which do not rely on a web server (you would be surpirsed the number of people who do not believe that a PHP application can exist outside of Apache). I think that the OP was under the impression that PHP-GTK operates in a manner similar to GWT or ECHO2 in Java, I was just trying to clear up his confusion. I'd be curious to see what percentage of PHP-GTK apps were created solely as backends to webpages, if the total number approached 25% I would be very surprised. Best, Patrick Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-233501 Share on other sites More sharing options...
Nameless12 Posted April 19, 2007 Share Posted April 19, 2007 sorry if i took you out of context its 6am here so you go figure. I agree with the people who think php should not exist out of apache to an extent, php should expand but if I ever see a phpgtk app for sale there is no way I would ever buy it for a whole bunch of reasons. when it comes to php backends I think most gtk apps are backends or people just playing around to see what it can do. PhpGtk after all was originally a proof of concept. I forget what linux distro it is but one of them released a php package manager with their distro but personally I prefer synaptic (that is coded in python with pygtk) But all this said I dont think php will ever create standalone apps because 1. interpreted 2. gtk has to be installed on the computer running the app Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-233518 Share on other sites More sharing options...
utexas_pjm Posted April 19, 2007 Share Posted April 19, 2007 I think you hit the nail on the head when you said that PHP-GTK is a proof of concept. Anything that can be created with PHP-GTK can be written in a language better suited for application development i.e., C++ (or Java if portability is a requirement). I've admittedly never used PHP-GTK, but I've always been under the impression that it was for people who thought: "Hmmm... it'd be cool to write minesweeper in PHP". I did however once come across a PHP-GTK Unit Testing front end that seemed like it might be of some practical use, or not. Best, Patrick Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-233533 Share on other sites More sharing options...
Ekate Posted April 20, 2007 Author Share Posted April 20, 2007 Thank you very much for your opinion,I really very appreciate it. So,recently I'm doing some coding work using php-gtk2,it's new experience for me... I want believe that everything will be ok and I'll do my project soon. Again,thank you very much, all the best regards Quote Link to comment https://forums.phpfreaks.com/topic/44900-gtk/#findComment-233960 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.