Sure, use a Content-disposition header
header('Content-Disposition: attachment; filename="filetodownload.jpg"');
if you wish to provide a default filename, but not automatic download, this seems to work.
header('Content-Disposition: filename="filetodownload.jpg"');
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…