Home arrow PHP arrow Page 4 - Revisited: Building Cross Platform GUI Apps With PHP-GTK

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...

Author Info:
By: Mitchell Harper
Rating: 5 stars5 stars5 stars5 stars5 stars / 19
November 17, 2002
  1. · Revisited: Building Cross Platform GUI Apps With PHP-GTK
  2. · What is PHP-GTK?
  3. · Downloading and installing PHP-GTK
  4. · Installing PHP-GTK for Linux
  5. · Building our first PHP-GTK app
  6. · Registering multiple callback functions
  7. · Adding GTK widgets to our window
  8. · Other PHP-GTK widgets
  9. · A PHP-GTK database app
  10. · Conclusion

print this article

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 login

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.


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:

php q test/hello.php
blog comments powered by Disqus

- Removing Singletons in PHP
- Singletons in PHP
- Implement Facebook Javascript SDK with PHP
- Making Usage Statistics in PHP
- Installing PHP under Windows: Further Config...
- File Version Management in PHP
- Statistical View of Data in a Clustered Bar ...
- Creating a Multi-File Upload Script in PHP
- Executing Microsoft SQL Server Stored Proced...
- Code 10x More Efficiently Using Data Access ...
- A Few Tips for Speeding Up PHP Code
- The Modular Web Page
- Quick E-Commerce with PHP and PayPal
- Regression Testing With JMeter
- Building an Iterator with PHP

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials