I have a single product and if some one buy that I needs to be able to deliver him a text file. For each customer that buys my single product I needs to be able to allow him access to a text file from a pool of text files in a folder The text file that I am sending is unique but has nothing to do with the customer. And I will upload these text files to the folder (http/product1/xyz.txt) and this folder will be password protected Any suggestions or advice will be really appreciated. Thank you P.S you can think of this situation as follow, some one buy a product call "random text file for 9.99" and I need to send him a random text file access as a subscription. I will create these text files in a protected folder.
So do they get to choose say one file over another or do they pay and then receive a file chosen by the system at random?
So why not just construct a 'Thank you for paying' page and include words such as 'click here to download your file'. This download link could then be constructed in the form of www.yoursite.com/download/textfileX.txt where the X in textfile is generated from a random number generator contained in web page? Sequence would then be - They Pay - Get thankyou page (random number generated say 125) - Link constructed as www.yoursite.com/download/textfile125.txt displayed as 'download here'