Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.