$image="liana.gif";
header('Content-type: application/JPEG');
header('Content-Disposition: attachment; filename="'$image . '"');
readfile("$image");
This works fine ofcourse. How can I specify the directory where the file is in, I can't use: $image="c:\example\liana.gif". That doesn't work. Also working with realpath function doesn't work.
Any suggestions???