Is it possible to use imagecreatefrompng() with a php file that returns a dynamic png image?
eg.
<?php
$IM = imagecreatefrompng('image.php?var=1');
?>
where image.php looks something like:
<?php
// code to generate image
header("content-type: image/png");
imagepng ( $OUTPUT );
?>
At the moment I'm getting a "failed to open stream" error - can this be done? If not, are there any quick & easy workarounds? (that don't involve using image.php to save a .png file for the script to detect instead.)
Thanks,
Chris