adityamadhira Newbie Poster 22 posts since Feb 2012 Reputation Points: 0 [?] Q&As Helped to Solve: 0 [?] Skill Endorsements: 0 [?] •Community Member 0 3 Years Ago 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.