raghunath Posted June 29, 2011 Share Posted June 29, 2011 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 More sharing options...
TeNDoLLA Posted June 29, 2011 Share Posted June 29, 2011 Can you show the code you have atm? Link to comment https://forums.phpfreaks.com/topic/240694-image-and-text/#findComment-1236255 Share on other sites More sharing options...
cssfreakie Posted June 29, 2011 Share Posted June 29, 2011 have a look at the tutorial of pHpfreaks: http://www.phpfreaks.com/tutorial/php-add-text-to-image Link to comment https://forums.phpfreaks.com/topic/240694-image-and-text/#findComment-1236257 Share on other sites More sharing options...
raghunath Posted June 30, 2011 Author Share Posted June 30, 2011 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 More sharing options...
raghunath Posted June 30, 2011 Author Share Posted June 30, 2011 I am looking to echo image and text but not text on image. Link to comment https://forums.phpfreaks.com/topic/240694-image-and-text/#findComment-1236696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.