hi all,

i have a php generated image that i want users to download as png, but as it is generated on the fly, the default save as option is <php_name>.php

so i just want to ask if there is any way to change this default file name to a png, without saving the image to server, as i have many users accessing the function at any time of the day.



for the displaying page, the line is simply:

//headers, etc
<img src="img.php?input=$value" border=0 />

and img.php

    $image = ImageCreateFromPNG("base.png");
    //add user content
    header("Content-Type: image/PNG");

perhaps i should add that i can see the image with no problem. it is just the 'save image as' that i need some pointers on.

This question has already been answered. Start a new discussion instead.