Code:
<?php
// download.php
// Prompt the user to save a file, then download it
header('Content-Type: MIME TYPE');
header('Content-Disposition: attachment; filename=suggested file name');
echo file_get_contents('path/to/image.jpg');
?>
These header adjustments prompt the user to save the file. First you need to supply a MIME type, like image/jpeg or image/gif or image/x-png or whatever. Then you suggest a file name like art.jpg, or whatever, grab the contents of the file and output it to the user.
Regards,
Rich
::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::