Including a page with GD
Posted: Tue Jul 25, 2006 12:12 pm
My friend wanted to know, and I have no idea if you can.
Is there any way to include a .html file into an image using GD? It doesn't work with the normal means, but instead gives me an error with the html in the source.
Code: Select all
<? header("Content-type: image/png"); $string = require("google.html"); $im = imagecreatefrompng("ad.png"); $orange = imagecolorallocate($im, 220, 210, 60); $px = (imagesx($im) - 7.5 * strlen($string)) / 2; imagestring($im, 3, $px, 9, $string, $orange); imagepng($im); imagedestroy($im); ?>