Hi,
I am trying to create dynamic WBMP images with the following code. Can some see if I am doing anything wrong ? Also is there an easy way to check that my server has GD setup correctly.
TIA, Andrew.
WML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="cardid" title="CardTitle">
<p align="center">
<img src="dynamimg.php3" alt="a"/>
</p>
</card>
</wml>
PHP:
<?
$image = imagecreate(1000,1000)
$white = ImageColorAllocate($image, 255, 255, 255);
$black = ImageColorAllocate($image, 0, 0, 0);
imagefilledrectangle($image, 0, 0, 99, 99, $black);
header("Content-type: image/vnd.wap.wbmp");
imageWBMP($image);
?>