All pastes #543713 Raw Edit

Untitled

public php v1 · immutable
·published 2007-06-06 04:41 UTC
rendered paste body
$file = '/home/file.avi'; header("Pragma: public"); header('Content-Description: File Transfer'); header('Content-Type: application/force-download'); header('Content-Length: ' . filesize($file)); header('Content-Disposition: attachment; filename=' . basename($file)); readfile($file);