PHP-GTK2 Newsletter

PHP-GTK2 Tips & Techniques
FREE Newsletter
by kksou




PHP-GTK v2.0.1 with GD2 library
Written by kksou   
Saturday, 28 June 2008

If you have installed the latest windows binary of PHP-GTK v.2.0.1 from gtk.php.net, for one reason or another, it does not include some of the commonly-used libraries.

One of these is the GD2 library.

Note: For those of you who are not familiar with GD2, please refer to the PHP documentation at: http://www.php.net/gd.


How to setup the GD2 library on windows?

Here are the steps to set up GD2 library on windows:

  1. Download a copy of php_gd2.dll. I forgot where I downloaded my copy of php_gd2.dll. But I know the follow copy works with the latest php-gtk v2.0.1.
  2. Download: php_gd2.dll

  3. Place the dll in the ext folder of your PHP-GTK root directory.
  4. Add the following to your php.ini
  5. extension = php_gd2.dll
    

That's it!

To test whether the GD2 library is working, you can try the following sample code:

How to draw a simple bar graph using GD2?



User reviews

There are no user reviews yet.

Note: You have to be a registered member to leave a comment. Free registration here.

 
< Prev   Next >

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2009. kksou.com. All Rights Reserved