i have created one image
but problem is that when i save image from browser it saved as image.php but i want save it as custom name send from php
<?php
$my_img = imagecreatefromjpeg("images/photo.jpg");
$nw = 400;
$nh = 500;
$img2 = imagecreatetruecolor($nw, $nh);
imagecopyresampled($img2, $my_img, 0, 0, 0, 0, $nw, $nh, imagesx($my_img), imagesy($my_img));
header("Content-type: image/jpeg");
header('filename="Custome Name.jpeg"');
imagejpeg($img2,NULL,60);
imagedestroy($img2);
?>
when user will save image it must save as name sent from server
Base on bsdnoobz answer, try using inline value for Content-Disposition :
instead of :