1.11M Members

What's Wrong with this Piece of Code ?

 
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 !!

 
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?

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article