Hi
I need help regarding file download.
$url="http://".$_SERVER.$_SERVER;
$id = strrchr($url,"/");
$id= substr($id,1,strlen($id));
retrieving name of the pdf from url
header('Content-disposition: attachment; filename='.$id);
header('Content-type: application/pdf');
readfile($id);
code for downloading file
but it is not working?
So i need help from you guys.
Thanks in advance.