Start New Discussion within our Web Development Community

Don't know what's wrong with this code ?? Can anyone figure it out ??

header('Content-Disposition: attachment; filename="'.$_GET['file'].'"');
header('Content-type: application/pdf');

Thanks !!

Technically the code is correct. I assume it's not doing what you want. What do you want to happen, and what is it doing instead?

This article has been dead for over six months. Start a new discussion instead.