• 26 May 2013 - Since the new version attracted too many spammy registrations (around 250 fake accounts/day), user registrations are now protected by Mollom's spam protection service. Contact us if this causes some trouble.
  • 01 May 2013 - After the site upgrade, all passwords were reset and you will need to ask the site for a login reset on your first connection.

Db access from GTK

Hi all, i have a php-mysql web application, which is a school based project.

My client wants this application to be converted into a .exe file such that it can be installed on his desktop and use it.

Instead, I suggested that we will do the same application using PHP GTK so that it can be run stand-alone on his system.

Will the mysql database be accessible for the GTK application, or do i need to use SQLite database?

Moreover, my existing app has a lot of html forms, with javascript and css included in them. Will the GTK support them ?

Please advice. Iam in a dilemma. Any help is appreciated :)

PHP-GTK applications can use MySQL

PHP-GTK applications can use MySQL just as well as web-based ones.

However,

  • unless you use some form of browser embedding, your HTML forms will not be usable as part of GTK app
  • you mention converting to a .EXE and AFAIK there is still no way to use one of the PHP compilers with PHP-GTK2: unless Roadsend or someone else made a lot of progress lately, you still have a scripted application, with a bunch of deployment issues.

php app to GTK app

Hi, i have downloaded a sample application of GTK here:
http://www.mithril.ca/code/php-gtk+/mp3_gtk/

Its working fine and also using a mysql database.
So i think using a database is not an issue.

I just want to know how can i convert my existing php application into a GTK app, if it is possible.

FYI, i have been searching for a php compiler, and came across PHPDock, http://www.nusphere.com/products/phpdock.htm

It claims that it can convert a php app into a stand alone app.
I also heard about the Balbalam extension for php.
But not sure about these tools. Iam in a dilemma what to go ahead with.

phpDock

From its own description PhpDock is a Web Server and Web Browser combined in one, small executable, capable of both running PHP scripts and rendering resulting HTML in the application Window, but PHP-GTK is /not/ web-based.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.