Revisited: Building Cross Platform GUI Apps With PHP-GTK - Installing PHP-GTK for Linux
(Page 4 of 10 )
I'm going to show you how to download PHP-GTK using PHP's CVS server. Before you can install PHP-GTK, you must make sure that you have
PHP version 4.1.1 or later,
CVS,
the Linux GTK+ libraries, as well as libtool 1.3.3 or later, automake 1.4 or later, autoconf 2.12 or later, bison 1.28 or later, and flex 2.54 or later installed and working correctly.
Firstly, login to the CVS tree using phpfi as your password:
cvs –d :pserver:cvsread@cvs.php.net:/repository loginNext, download PHP-GTK to your machine from PHP's CVS server:
cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtkChange into the directory where PHP-GTK was downloaded:
cd php-gtkRun the phpize tool, which should've been installed when you installed PHP. It should be in the directory pointed to by your phpize path.
phpizeNow you'll need to configure, make and install PHP-GTK:
./configure && make && make installLastly, run the following command to execute the hello.php script that was installed when you downloaded PHP-GTK. You should be presented with a PHP-GTK window containing one button:
php –q test/hello.phpNext: Building our first PHP-GTK app >>
More PHP Articles
More By Mitchell Harper