[SOLVED] - htaccess help
Posted: Sat Jul 30, 2005 11:55 pm
hey, I am building a auto-download after purchase routine and I am now working on the downloading part of the routine and I can not seem to get this to work. Basically, I have a folder with the download and I have protected the folder with .htaccess. Now the script they goto when they receive their email after the purchase is outside that folder. I am trying to allow just my script to pull that file or at least send them to the file for download. I don't want to give them the password and I assumed that my script would be allowed to access the folder but it can't. I have tried to popen to the file and that was no good, I tried to fopen the file but that didn't work either. I even tried to send a header like: user:pass@site.com/protected/file.zip
but it asks me if I want to log in and then shows the password! Is ther anyway, I can keep the folder .htaccessed and allow my script to get to the file so I can pipe it to the user or just send him/her to the file through the script? thanks
but it asks me if I want to log in and then shows the password! Is ther anyway, I can keep the folder .htaccessed and allow my script to get to the file so I can pipe it to the user or just send him/her to the file through the script? thanks