Hi all,
I Have generated an image with some simple maths to verify the user…
This image is created by using the
imagecreate(),imagecolorallocate() functions…
But it is not showing, when i include it in another page…
But when i call it explicitly, it is showing the image. Why?
you are outputting the image directly to the browser by only using the first argument in imagepng() - that only works if the image is the only thing you want to send to the browser. if the image needs to appear inside an html document you will need to save it by specifying the filepath as the second argument, then including it in the document with an <img> tag