Jump to content

Image and text


raghunath

Recommended Posts

Hi All,

 

After searching for a long time in google i am posting this topic here.

I want to output text and image once(i.e in one request).

I am generating a image dynamically using GD library and text is coming from database. I am able to output text separately and image separately and not able to output both of them in single request.

Any document or any code i a grate help for me.

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/240694-image-and-text/
Share on other sites

Hi Tendolla

 

Here is my code

header("Content-type: image/gif");
$image = imagecreate( 200, 200 );
$red = imagecolorallocate($image, 255,0,0);
$blue = imagecolorallocate($image, 0,0,255 );
imagearc( $image, 99, 99, 180, 180, 0, 360, $blue );
imagefill( $image, 99, 99, $blue );
imagegif($image);
echo 'hiccccccccccbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';

Link to comment
https://forums.phpfreaks.com/topic/240694-image-and-text/#findComment-1236692
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.