Jump to content

[SOLVED] download if payed


the_oliver

Recommended Posts

Hello,

 

Im trying to do something where by when some one pays for something, and the payment is confirmed they are able to download a file.

 

The bit i cant work out is how to let them download the file.  I could just give them the link only once they have paid, however this would meen that they could give anyone the link.  So i need a way to make downloads only possible by people who have paid, not anyone who knows the URL.

 

Can anyone suggest anything?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/60667-solved-download-if-payed/
Share on other sites

Thank you,

 

So when using that can i put the file outside the webservers directory?  (so as to stop the whole anyone gessing the url thing!).  And specify where the file is in this bit:

 

$file = $_REQUEST['file'];

 

so it could be

 

$file = $_REQUEST['/stor/file.someting'];

 

Excuse my ignorance!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.