How to display image created with gdlib

I’ve created an image using gdlib, can’t figure out how to display it on a web page. I call a function from index.php to create the image. As soon as I call imagepng() in the function, the image displays, but that’s all that displays. I can’t ‘tame’ it and put it within other text and things on a web page, by using IMG SRC= or anything. Not really new to php, but I am new to gdlib and image handling.

that will be since your outputting the image instead of saving it, save the image rather then printing it then you can call it within your img tags

Sponsor our Newsletter | Privacy Policy | Terms of Service