doa24uk Posted September 19, 2007 Share Posted September 19, 2007 Hi guys, I'm half way through a custom built download protection script that does various things. However this is the bit that isn't working.... $name = 'file.txt' $fulldownload = '/files/'.$name; header('Content-Disposition: attachment; filename="'.$fulldownload.'"'); header('Cache-control: private'); Instead of linking straight to the file in questions it actually prints the current page (HTML) and puts it in the txt file to download. I'm so lost! DoA Quote Link to comment https://forums.phpfreaks.com/topic/69957-download-protect-script-getting-contents-of-current-page-help/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.