Greetings,
I've been surfing the forum for a few hours now and haven't found what I'm looking for. I might not be asking the right questions, so pleare bare with me.
The basic problem: I am planning on selling my warez and using PayPal. (For now) And instead of sending someone a CD, I'd like to provide a dynamic download link.
I'd like to have a PHP script as the PayPal result page that should generate a secure (or as secure as possible) download page. I have a password-protect dir setup, but using:
header("Location: [url]http://username:password@www.somesite.com/path/file.zip[/url]");
Doesn't appear to work, at least in IE6. The HTTP auth box comes up.
Is there a better way to do this? I haven't done many ecommerce-related projects, and so far I haven't come up with a good way to do it. I don't think using a session would work because the resulting page will be redirected from paypal. I was thinking of checking the referer to see if www.paypal.com was in it. Need to explore that.
If someone could point me in the right direction, I'd appreciate it. I've spent a few days now trying to come up with a way and my head hurts. 🙂
Thanks!
Nelson