File "abc.php"

Full Path: /home/analogde/www/Prog/File explorer/abc.php
File size: 544 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

    //echo $_GET['path'];
    //$path = $_GET['path'];

    header('Content-Description: File Transfer');
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename="'.basename($_GET['path']).'"');
    header('Expires: 0');
    header('Cache-Control: must-revalidate');
    header('Pragma: public');
    header('Content-Length: ' . filesize($_GET['path']));
    flush(); 
    readfile($_GET['path']);

    //header("location:" . $_SERVER['HTTP_REFERER']);
    die();

?>