PHP-GTK v2.0 - adding GtkHtml and GtkExtra

The default windows binary available from the official site comes packaged with php_gtk_libglade2.dll and php_gtk_sourceview2.dll. GtkHtml and GtkExtra are not included yet.

In case you need these two libraries, you can get the libraries from Elizabeth Smith’s blog. (Note: she’s the one who compiled the windows binary in the official php-gtk site).

1) Download the following file from http://perisama.net/downloads/GTK/:
php5.3-php-gkt2cvs.zip

(July 28, 2008. Note: Seems like she has moved the file to somewhere else. In case you don’t have a copy of the two dll’s, you can temporarily download a copy below.)

2) Unzip the file

3) In the folder “ext”, you will see the 2 libraries: php_gtk_html2.dll and php_gtk_extra2.dll. Copy them to the corresponding folder where you installed the php-gtk v2.0.

4) Edit your php.ini and add these two libraries:
php-gtk.extensions = php_gtk_libglade2.dll,php_gtk_sourceview2.dll, php_gtk_extra2.dll, php_gtk_html2.dll

That’s it! You now have PHP-GTK v2.0 with GtkHtml and GtkExtra!

/kksou

http://www.kksou.com/php-gtk2
The place for php-gtk2 sample codes

One Response to “PHP-GTK v2.0 - adding GtkHtml and GtkExtra”

  1. Elizabeth Smith Says:

    Note: These were built against a different version of PHP, you may get segfaults. Also the libraries they use were built against a different version of GTK, again, you may get segfaults - so use at your own risk.

Leave a Reply