Render html as an image in php
I have a img html tag on my html page. In this img tag, I am passing url of PHP page which return some html. Below is my IMG tag:
<img src="http://www.example.com/php_image.php" />
I am not able to find any way about how can I convert my html page renders on given PHP url and return that content as an image so that IMG tag can show it.