Wednesday, July 25, 2007

download a file withoutshowing its url

php program

header('Content-type: application/'.$fileext);
header('Content-Disposition: attachment; filename="'.$file_name.'"');
readfile("softwares/".$file_name);

No comments:

Post a Comment