I create an image dynamically using PHP GD. thus when I execute index.php it create image.png but I want image in index.php for example I can use <img src="index.php">
I create an image dynamically using PHP GD. thus when I execute index.php it
Share
You have to set header content-type to
header('content-type: image/jpeg');I have implemented a similar code once for a captcha