PHP
  Home arrow PHP arrow Page 2 - Programming with PHP and GTK, Part 1
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Programming with PHP and GTK, Part 1
By: Vinu Thomas
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 39
    2004-08-16


    Table of Contents:
  • Programming with PHP and GTK, Part 1
  • Installing PHP-GTK
  • A Test Run
  • A PHP-GTK Window
  • Widgets
  • A Simple Program

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Programming with PHP and GTK, Part 1 - Installing PHP-GTK
    ( Page 2 of 6 )

    How Do I Install PHP-GTK?

    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:

    • PHP4
    • TEST
    • WINNT

    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:

    Start>Settings>Control Panel>System>Advanced>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"



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

       

    PHP ARTICLES

    - Using Directory Iterators to Build Loader Ap...
    - Using the spl_autoload() Functions to Build ...
    - Working Out of the Object Context to Build L...
    - Using the _autoload() Magic Function to Buil...
    - The Destruct Magic Function in PHP 5
    - The Autoload Magic Function in PHP 5
    - Developing a Recursive Loading Class for Loa...
    - The Sleep and Wakeup Magic Functions in PHP 5
    - Using the Clone Magic Function in PHP 5
    - Including Files Recursively with Loader Appl...
    - The Call Magic Function in PHP 5
    - Designing a Captcha System with PHP and MySQL
    - Using Static Methods to Build Loader Apps in...
    - The Isset and Unset Magic Functions in PHP 5
    - Advanced PHP Form Input Validation to Check ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT