Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

idevnews:
The Future of PHP-GTK?
Dec 29, 2003 @ 15:17:21

PHP Magazine has a new post today taken from an article from Frank Kromann over on idevnews about the future of user interfaces in PHP, and how to bring richer, more complete interfaces to the masses.

Most PHP scripts are designed to be executed from the top to the bottom each time the script is requested by a client (web browser). Programming GUI applications with PHP-GTK is different from these typical PHP projects, as they are event driven. That means that the PHP-GTK script stays in memory until the user decides to quit (close window event). Each PHP-GTK script has three parts:

  • Construct the GUI elements. Windows, buttons list, etc.
  • Functions that will be executed on events; and
  • A main loop to process events.

He goes on to talk about several of the features that make PHP-GTK a unique language on the map, including how easy it is to extend and create custom objects in (open source and all). And, as proof, there's even a listing of several applications that make use of the PHP-GTK interface.

tagged:

Link:


Trending Topics: