PHP-GTK.eu End of Life and GDPR

If you're reading the PHP-GTK.eu community site these days, you certainly noticed that not a single piece of significant content was created since 2015, and not much since 2013.

Whatever this may mean for PHP-GTK itself is another issue, but for the site itself, it means it ceased to be relevant about 5 years ago, and it's time to move on for the site members. Since the site contains non-anonymous user, it will fall under the new EU GDPR regulations entering into force on 2018-05-25, and there is no point for me to spend time on evolving the site towards compliance when no one is actually using it.

So here is the EOL announcement: the site will be shutting down on 2018-05-24 and its data will taken offline.

A static version of the articles may be published again at some point here or elsewhere, but I wouldn't hold my breath on it. So if you have even some interest in the site content, be sure to copy/paste the pages of interest before it goes dark on 2018-05-24. Or contact me if you want a copy of the files and content, or check my blog for newer content.

Thanks all for participating, it's been a pleasure while it lasted.

FGM

PHP-GTK FAQ

This topic is created to gather all recommendations gathered over time from the most frequently asked questions on the mailing lists and on IRC. So go ahead, add your own Q&A, and I'll update the main post as required !

The FAQ itself

  1. On Windows: missing intl.dll error: this is the GNU libintl (internationalization library). Download it from the Gimp site. If you use another version, make sure the build matches your php.exe build
  2. php_gtk should only be used with php cli sapi, it does not work with other sapis, quit giving us apache errors.
  3. MySQL is not bundled in Win32 binaries due to license incompatibilities: just add libmysql.dll to the main PHP-GTK2 folder, and your choice of PHP extension to the ext folder, like php_mysql.dll, then enable the extension in php-cli.ini
  4. php-gtk objects cannot be cloned - gtk objects cannot be cloned so it is not something fixable in PHP. If you try to clone you will segfault
  5. how to have code completion in an editor:
    • Zend Studio: add gtk2CodeComp.php to <studio dir>/lib, next to phpFunctions4.php and phpFunctions5.php, and restart it.
  6. where to find nightly builds for Windows (win32): Perisama.net
  7. compiling a PHP-GTK application (PHP 5.2) to binary executable format: There is currently no PHP-GTK2 solution. However, you can just package your application as a single file or phar
  8. avoiding the cmd.exe window when starting PHP-GTK applications (Win32): use php-win.exe instead of php.exe. They work exactly the same except that php-win.exe does not spawn a dos window.

FAQ Contributors:

Further detail

The intl.dll problem is a known packaging error from the php-gtk2 alpha on windows and will be fixed in newer releases.

The gtk2CodeComp.php file is currently not part of a php-gtk2 distribution, and this URL appears to be the only place where it can be found yet.

Builds at Perisama are not really nightly, but they are the most frequently updated builds for Windows. Perisama intro.