Home arrow PHP arrow Programming with PHP and GTK, Part 1

Programming with PHP and GTK, Part 1

Have you ever thought of writing a PHP application for client side execution without having a web server present? Learn the basics of creating a front end for PHP using PHP-GTK.

TABLE OF CONTENTS:
  1. Programming with PHP and GTK, Part 1
  2. Installing PHP-GTK
  3. A Test Run
  4. A PHP-GTK Window
  5. Widgets
  6. A Simple Program
By: Vinu Thomas
Rating: starstarstarstarstar / 40
August 16, 2004

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

Introduction

Have you ever thought of writing a PHP application for client side execution without having a web server present? One of my clients required one of the web applications I had written for him for his website to run on his desktop. Since the whole application was already written, I was dreading the fact that I had to re-code the whole application in another programming language on his desktop.

Since PHP can run from the command line, this got me thinking on how to get the PHP application to run as a windows application. A few searches on Google landed me with the answer to the problem. Combine the programming power of PHP with the GUI's of GTK (Gnome Tool Kit).

Multi-platform PHP-GTK Extensions

PHP-GTK is an extension to PHP which implements the bindings for the GTK toolkit. This extension allows us to create GUI's for our PHP applications using GTK+. The present version of PHP-GTK version 1.0 will run under PHP 4.0.5 or greater and GTK+ 1.2.6. Since the present version of PHP-GTK is available for Linux and Windows, the applications you write, will run on both the platforms without any change in code. This is a cool and easy way to write cross-platform applications.



 
 
>>> More PHP Articles          >>> More By Vinu Thomas
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 4 - Follow our Sitemap

Dev Shed Tutorial Topics: