"; //print_r($bits); $bits[0] = strtoupper($bits[0]); $file= implode(".",$bits); $file= "/samba/theLibrary/Documents/".$file; //echo $file; if (file_exists($file) and is_readable($file)) { header("Content-type: application/pdf"); header('Content-Disposition: attachment; filename='.basename($file)); $fp = fopen($file,'rb'); fpassthru ($fp); } else {echo "File does not exist
File: $file";} ?>