<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Martin Fleming &#187; GTK</title>
	<atom:link href="http://martin-fleming.co.uk/tag/gtk/feed/" rel="self" type="application/rss+xml" />
	<link>http://martin-fleming.co.uk</link>
	<description>Sharing my experiences and knowledge</description>
	<lastBuildDate>Fri, 11 Nov 2011 15:08:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP-GTK Ubuntu 64bit deb package</title>
		<link>http://martin-fleming.co.uk/2009/10/php-gtk-ubuntu-64bit-deb-package/</link>
		<comments>http://martin-fleming.co.uk/2009/10/php-gtk-ubuntu-64bit-deb-package/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 14:14:25 +0000</pubDate>
		<dc:creator>Marty (admin)</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[GTK]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://martin-fleming.co.uk/?p=59</guid>
		<description><![CDATA[<p>I&#8217;ve looked everywhere for a binary deb package for PHP-GTK so I have compiled my own and posted it here to share.  To use it you will have to manually edit your php.ini file but I have writen instructions for this below.<span id="more-59"></span></p>
<p>Tested on Jaunty (9.04), Karmic (9.10)</p>
<p><a href="/downloads/php-gtk_2.0.1-1_amd64.deb">php-gtk_2.0.1-1_amd64.deb</a></p>
<h3>Installation Instructions</h3>
<p>Download the deb file for your version of Ubuntu above and double click this file when downloaded.</p>
<p>Once installed you will need to edit your php.ini file to get it to work.</p>
<pre class="cmd">$ sudo gedit /etc/php5/cli/php.ini</pre>
<p>In the Dynamic Extensions part of the file add the line extension=php_gtk2.so</p>
<pre>;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.

extension=php_gtk2.so</pre>
<p>You may wish to do a simple test to make sure all is working (taken from <a href="http://gtk.php.net/manual/en/tutorials.helloworld.php">http://gtk.php.net/manual/en/tutorials.helloworld.php</a>).</p>
<pre><code>&lt;?php
if (!class_exists('gtk')) {
 die("Please load the php-gtk2 module in your php.ini\r\n");
}

$wnd = new GtkWindow();
$wnd-&gt;set_title('Hello world');
$wnd-&gt;connect_simple('destroy', array('gtk', 'main_quit'));

$lblHello = new GtkLabel("Just wanted to say\r\n'Hello world!'");
$wnd-&gt;add($lblHello);

$wnd-&gt;show_all();
Gtk::main();
?&gt;</code></pre>
]]></description>
		<wfw:commentRss>http://martin-fleming.co.uk/2009/10/php-gtk-ubuntu-64bit-deb-package/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

