Images and text
Posted: Tue Apr 01, 2003 4:22 am
Hi,
After doing the following code I just can´t output any text with "ECHO" or "PRINTF" functions.
I mean. It does all the graphics stuff but it just don´t execute the line "echo "Image 1;"
Can any one help me please???
$pic=imageCreate($boxWidth,$boxHeight);
imageFilledRectangle($pic, $boxLeft+1, $boxTop, $boxRight-1, $boxBottom, imageColorAllocate($pic,$boxGray,$boxGray,$boxGray));
imageFilledRectangle($pic, $boxLeft, $boxTop+1, $boxRight, $boxBottom-1, imageColorAllocate($pic,$boxGray,$boxGray,$boxGray));
Header("Content-type: image/png");
imagePNG($pic);
imageDestroy($pic);
echo "IMAGE 1";
After doing the following code I just can´t output any text with "ECHO" or "PRINTF" functions.
I mean. It does all the graphics stuff but it just don´t execute the line "echo "Image 1;"
Can any one help me please???
$pic=imageCreate($boxWidth,$boxHeight);
imageFilledRectangle($pic, $boxLeft+1, $boxTop, $boxRight-1, $boxBottom, imageColorAllocate($pic,$boxGray,$boxGray,$boxGray));
imageFilledRectangle($pic, $boxLeft, $boxTop+1, $boxRight, $boxBottom-1, imageColorAllocate($pic,$boxGray,$boxGray,$boxGray));
Header("Content-type: image/png");
imagePNG($pic);
imageDestroy($pic);
echo "IMAGE 1";