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
escort Bursa Bursa escort Antalya eskort
   

PHP ARTICLES

- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- 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...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: