<?php
$im = imagecreate(100, 50)
�� or die("Cannot Initialize new GD image stream");
$back_color = imagecolorallocate($im, 255, 255, 255);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5,� "A Simple Text String", $text_color);
header("Content-type: image/png"); //<-----------------
move header to here
imagepng($im);
imagedestroy($im);
?>
And invoke the module directly from your browser,
At http://localhost/dynamic_tabs.php
And now php should be able to help you find your problem.
Good luck,
Warren Vail
-----Original Message-----
From: Ken Tozier [mailto:[EMAIL PROTECTED]
Sent: Monday, November 01, 2004 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] No luck creating dynamic images
<snip>
> Enable FULL error reporting.
I tried this with error_reporting(E_ALL); and ran the script in
multiple browsers no errors reported.
Also ran phpinfo(); (as suggested by Jay Blanchard) which worked
without problem. The settings under GD were all enabled for the common
image types.
Anybody see any glaring errors in the following?
Here's the html:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>
<body bgcolor="#ffffff">
<img src="dynamic_tabs.php">
</body>
</html>
And here's the php:
<?php
header("Content-type: image/png");
$im = imagecreate(100, 50)
�� or die("Cannot Initialize new GD image stream");
$back_color = imagecolorallocate($im, 255, 255, 255);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5,� "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php