GIF89a php
Current File : /home/drbalajibabycent/public_html/Admin-Panel/download1.php
<?php
include 'db.php';
    
    
if(isset($_GET['cid'])){
    $id = $_GET['cid'];
$view = mysqli_query($db,"select * from p15 where id=$id");
        $data = mysqli_fetch_assoc($view);

  }

         $file='image/Material/'.$data['file1'];

    if(file_exists($file)){
        header('Content-Description: '. $data['description']);
        header('Content-Type: '.$data['type']);
        header('Content-Disposition: '.$data['disposition'].'; filename="'.basename($file).'"');
        header('Expires: '.$data['expires']);
        header('Cache-Control: '.$data['cache']);
        header('Pragma: '.$data['pragma']);
        header('Content-Length: '.filesize($file));
        readfile($file);
        
        
        
        
        
        
        
        exit;
        
    }