Menu
Hi,
I’ve wrote a simple script that opens an image file changes it a bit and then displays it in the browser window. These are the basics
[code=php]
<?php
Header(“Content-Type: image/png”);
$myimage = ImageCreateFromPng(“image.png”);
// do something ramdom to it
ImagePng($myimage);
ImageDestroy($myimage);
?>
Instead of having this script output directly to the browser, I would like it to save the image to the server and have the html point to the static output.
Thanks