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
- 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
- php_gtk should only be used with php cli sapi, it does not work with other sapis, quit giving us apache errors.
- 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
- 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
- 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.
- where to find nightly builds for Windows (win32):
Perisama.net
- 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
- 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.
Recent comments
6 weeks 2 days ago
12 weeks 1 day ago
13 weeks 6 days ago
20 weeks 2 days ago
21 weeks 4 days ago
21 weeks 6 days ago
22 weeks 6 days ago
23 weeks 5 days ago
34 weeks 4 days ago
34 weeks 4 days ago