'; } else { if(is_file(dirname(__FILE__).'/labels/'.$label.'.pdf')) { header('Content-type: application/pdf'); header('Cache-Control: no-cache, must-revalidate'); header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); header('Content-disposition: inline; filename="'.$label.'.pdf"'); readfile(dirname(__FILE__).'/labels/'.$label.'.pdf'); } else { echo 'ERROR - File not found'; } } }