I'm trying to use ImageCreateFromPNG to open a dynamic image file created by another PHP document. it looks like this:
The "image.php" file works properly when displayed in a browser,Code:test.php : <? (...) $my_image = ImageCreateFromPNG("image.php"); (...)?> image.php : <? header("Content-type: image/png"); (...) imagepng($im); ImageDestroy($im); ?>
yet "test.php" says that it "is not a valid PNG file" when I'm trying to access it via ImageCreateFromPNG.
am I missing something?