Les explico tengo un hosting de imagenes pero estoy tratando de que esas imagenes sean descargables y ya tengo el script para hacerlo y el que veo que si funciona en una pagina.
 Lo que se es que error esta en $root
El detalle es que no se que pasa con el directorio y que haga mal en "$root" tengo "/"  pero no se por que me marca error miren los codigos  
download.php 
 Código PHP:
    <?php 
// verify file
if (!isset($_GET['file']) || empty($_GET['file'])) {
    exit();
}
// get filename
$root = "/";
$file = basename($_GET['file']);
$path = $root.$file;
$type = '';
if (is_file($path)) {
    $size = filesize($path); 
    if (function_exists('mime_content_type')) {
        $type = mime_content_type($path);
    } else if (function_exists('finfo_file')) {
        $info = finfo_open(FILEINFO_MIME);
        $type = finfo_file($info, $path);
        finfo_close($info);  
    }
    if ($type == '') {
        $type = "application/force-download";
    }
    // Set Headers
    header("Content-Type: $type");
    header("Content-Disposition: attachment; filename=\"$file\"");
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: " . $size);
    // Download File
    readfile($path);
} else {
    die("File not exist !!");
}
?>    
   
Si    
Código:
 <a href='download.php?file=$image'>Descargar</a>
  y $image= /pic12/405857content.jpg   
el codigo para descargar seria 
 Código PHP:
    pagina/download.php?file=/pic12/405857content.jpg