February 13th, 2006 12:39 AM
PHP download management
I'm currently learning PHP, and I'd like to put it into practice to help me learn. Now, I've got a vague idea of how to make a download script so that if the value of a certain variable is '1', the first download is selected, if it's '2', the second is selected, and so on... But, all the time, the download source's URI is not revealed.
As I was saying, I have a vague idea of how to do it - but I know it wrong. I was thinking of something like this:
I can already see most of you cringing after that! Ok, so it's pretty obvious this doesn't work. So, could someone please tell me what I can do to make it work?
$dl = '0';
Thanks in advance,