0

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

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

Thanks !!

2
Contributors
1
Reply
15
Views
4 Years
Discussion Span
Last Post by pritaeas
0

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 topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.