Revisited: Building Cross Platform GUI Apps With PHP-GTK
PHP is not just a web-based scripting language. Did you know that you can also build complete, cross-platform, windowed applications with PHP and MySQL? If not, read on...
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:
Next, download PHP-GTK to your machine from PHP's CVS server:
cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk
Change into the directory where PHP-GTK was downloaded:
cd php-gtk
Run the phpize tool, which should've been installed when you installed PHP. It should be in the directory pointed to by your phpize path.
phpize
Now you'll need to configure, make and install PHP-GTK:
./configure && make && make install
Lastly, 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: