getEntry($_GET['id']); $BIB = new BibtexParser($entry['raw']); $BIB->removeKey('url'); $BIB->removeKey('Url'); $BIB->removeKey('URL'); header('Content-Disposition: attachment; filename="'.$entry['citekey'].'.bib"'); echo $BIB->getBibtexString(); } ?>