The present version of PHP-GTK is version 1.0.0, which works with PHP4 and GTK+ 1.x. You can download the latest version from http://gtk.php.net/download.php. The present version is supported on Windows and Linux. Here's how you can install it on your system.
Installing PHP-GTK in Windows
This installation method should work for Windows NT, 2000 and XP. I'm assuming that you have not installed PHP on your system prior to this. Download the zip file with the latest version of PHP-GTK to your system. Use a program like Winzip to extract the files to a temporary folder. For ease of explanation, let's say you extract the zip file to C:TEMP. When you go to C:TEMP you'll find 3 folders which have been extracted:
The PHP4 folder contains an installation of PHP and GTK libraries required to run PHP-GTK. Copy the PHP4 folder to your C: drive so the path of your PHP4 directory becomes c:php4. The folder c:tempwinnt contains the configuration file for PHP: php.ini. Copy php.ini to your windows directory, either c:windows or c:winnt, depending on your version of Windows. The folder c:temptest contains some test programs for PHP-GTK. You can copy this folder under c:php4. So your test programs will be accessible under c:php4test
If you have a prior installation of PHP, do not copy the php.ini file to your windows folder. You'll have to manually copy the changes in the supplied php.ini to your original configuration file.The rest of the installation remains the same.
Add C:PHP4 to your file path in the environment variables. Here's how you get to the environment variables:
We do this so we can call a execute a php script by calling "php script.php" instead of having to supply the path to php.exe every time. If you don't wish to add the path to PHP4 in the environment variable, you'll need to call php by using the full path like so - "c:php4php script.php"