Mailinglisten-Archive |
Hallo Dennis,
> if (isset($file))
> {
> $basedir = "../data/download";
> $filename = sprintf("%s/%s", $basedir, $file);
> header("Content-Type: application/x-tar");
> header("Content-Disposition: attachment; filename=\"".$file."\"");
> readfile($filename);
> }
Wie wär es, wenn du nach dem readfile noch ein
header("Location: $HTTP_REFERER"); einbaust ?
--
Mit freundlichen Grüssen
Jens Maukisch
php::bar PHP Wiki - Listenarchive