[thelist] Problem with PHP images

Rich Gray rich at f1central.net
Fri Jan 24 03:46:01 CST 2003


Is the php.ini directive extension_dir pointing to the location where
php_gd.dll resides? This is usually <php install directory>\extensions...

Do you see any errors?

Rich

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of PHANI KUMAR
MACHAVARAPU
Sent: 24 January 2003 08:18
To: thelist at lists.evolt.org
Subject: [thelist] Problem with PHP images


Hi,

  I am having problem working with PHP images. I tried
the following code on Windows 98 with PWS.

<?php
	header("Content-type: image/png");
	$im = @ImageCreate(320, 200) or die("Could not create
image");
	$bg_color = ImageColorAllocate($im, 240, 240, 240);
	$text_color = ImageColorAllocate($im, 0, 0, 0);
	ImageString($im, 3, 0, 0, "Hello Images!",
$text_color);
	ImagePng($imzz);
?>

I removed comment from php.ini file of the line

extension=php_gd.dll

But I was unable to get the result. Are there any
prerequired configurations to be done? Please, anyone
help me in this regard.

regards,
Phani




More information about the thelist mailing list