gd library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi to all,
I just installed PHP 4.3.1 on a windows 2000 machine. Everything works fine
except for graphics. I can't generate graphics. I copy the php.ini to
C:\WINNT\system and uncommented the line for php_gd.dll library, but still I
can't make to work.
I keep getting the following error:
Call to undefined function: imagecreate() in
c:\inetpub\wwwroot\php\lines.php on line 22

below is the code that I'm working with

$height = 200;
$width = 200;
$im = ImageCreate($height, $width);

$white = ImageColorAllocate ($im, 255, 255, 255);
$black = ImageColorAllocate ($im, 0, 0, 0);

// draw on image
ImageFill($im, 0, 0, $black);
ImageLine($im, 0, 0, $width, $height, $white);
ImageString($im, 4, 50, 150, "Sales", $white);

// output image
Header ("Content-type: image/png");
ImagePng ($im);

// clean up
ImageDestroy($im);


Any help is greatly appreciate
Thanks
Nato

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nato Castro
Web Development
COmputing TechnologieS, Inc. (CoTs)
3028 Javier Road, Suite 400
Fairfax, VA 22031
Tel: 703.280.8800 ext.1205
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux