SiteMinder / Webhosting
The Computer Merchant, Ltd
US-MA-North Quincy

Justtechjobs.com Post A Job | Post A Resume

Getting Started with PHP-GTK: Part 1
Introduction
With the release of PHP5, there has been renewed interest in the PHP-GTK extension. What does the PHP-GTK extension provide? "PHP-GTK implements language bindings for GTK+." PHP-GTK provides the means for a developer, familiar with PHP, to create rich clients using the PHP programming language.
Installation
Installation has already been cover in John Starkey's article "Installing PHP-GTK on Linux". If you have not already read this, I would highly recommend it. There are a few comments I'd like to add to the installation process. Let me point out that the website gtk.php.net has the same documentation layout as does PHP and the quality of the documentation is also top notch. I also highly recommend reading the installation section of the documentation for both Windows and Linux users. For those users of Gentoo, my favorite distro, there is an ebuild that works great too.
Verify Installation
To verify the installation we need to create a simple script that will test whether the extension is loaded and, if not, will load the extension. The script is as follows:

<?php
  
if(!extension_loaded('php_gtk')) {
    
$loaded = dl('php_gtk.'.PHP_SHLIB_SUFFIX);
  } else {
    
$loaded = true;
  }
  echo
"Extension loaded: ";
  echo (
$loaded) ? "true\n" : "false\n";
?>
This will produce either an "Extension loaded: true" or "Extension loaded: false".
If the extension is loaded into PHP then you can move to the next section. Otherwise review the installation instructions at the PHP-GTK website.
[ Next Page ]


Comments:
problem with div tags in lotus notes.ravi05/29/08 09:54
php for beginner...fitri01/15/06 10:46
solution for the errormeenambigai05/03/05 02:38
RE: Getting Started With PHPJohnnyblaz01/23/05 19:52
file functionscijo01/19/05 08:31
Help needed- how to execute php in IIS serversivakumar01/19/05 00:07
RE: HACKERSMasterDrive01/10/05 06:28
RE: Getting Started With PHPHulton Biljon01/10/05 03:43
RE: Getting Started With PHPAnders Einar01/03/05 01:42
Changing Background ColorsEmanuel Smith12/29/04 17:43
Getting Started With PHPAndrew12/23/04 13:07
rooms in chatTerry12/04/04 08:22
reupload imageBharati11/25/04 01:40
Getting Started With PHPali11/24/04 14:29
classeshello11/21/04 03:56
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.