Browse DevX
Sign up for e-mail newsletters from DevX


Develop Desktop GUI Apps with PHP-GTK, the Standalone PHP : Page 3

PHP enters the standalone GUI application arena with PHP-GTK. Learn the basic building blocks of PHP-GTK coding with a tutorial for first installing the language and then building and connecting its widgets, buttons, and functions.

Linux Install
I find the CVS Version of PHP-GTK to be the most straightforward for a Linux install. The following steps will guarantee you have the most up-to-date version of PHP-GTK.

Figure 7. Cvstage0: Using the terminal to install PHP-GTK over the Internet.
Figure 8. Cvsstage1: Using the terminal to install PHP-GTK over the Internet.

Log into the PHP anonymous CVS server by opening a terminal window.

TYPE: cvs -d :pserver:cvsread@cvs.php.net:/repository login (see Figure 7)

TYPE: phpfi at the password prompt and get the PHP-GTK tree.

TYPE: cvs -d :pserver:cvsread@cvs.php.net:/repository co -r PHP_GTK_1 php-gtk (see Figure 8)

Figure 9. Buildconf-configure: Building and configuring PHP-GTK on Linux.

Move into the PHP-GTK directory source tree.

TYPE: cd php TYPE: cd php-gtk

Configure and install PHP-GTK in typical Linux fashion.

TYPE: ./buildconf TYPE: ./configure

Note: Configure has a lot of options. For a more complicated build, try typing ./configure—help first (see Figure 9).

TYPE: make

TYPE: make install

Thanks for your registration, follow us on our social networks to keep up-to-date