Well,
I was thinking to do a little script, but i need some help.
Well.. my script will work like this:
I have a page of downloads.
Have a lot of categories
Windows 95
Windows NT
Linux
Drives
Sounds
And inside this categories i have a lot of files...
i want to do one script that do like this.
http://www.server.com/cgi-bin/download.cgi?cat=win95&file=name.zip
cat = category
file= name of file with extension
i mind that i have to set onte variable to each category
like
if ($in{'cat'} == "win95") {
$address = 'http://www.server.com/win95/';
}
else { if ($in{'cat'} == "linux") {
$address = 'http://www.server.com/linux/';
}
}
and then i put
print "Location: $address/$in{'file'}";
to downlooad.
My logic is correct?!??!?!
------------------
--
Rafael Faria
Flash World - Professional Resources
I was thinking to do a little script, but i need some help.
Well.. my script will work like this:
I have a page of downloads.
Have a lot of categories
Windows 95
Windows NT
Linux
Drives
Sounds
And inside this categories i have a lot of files...
i want to do one script that do like this.
http://www.server.com/cgi-bin/download.cgi?cat=win95&file=name.zip
cat = category
file= name of file with extension
i mind that i have to set onte variable to each category
like
if ($in{'cat'} == "win95") {
$address = 'http://www.server.com/win95/';
}
else { if ($in{'cat'} == "linux") {
$address = 'http://www.server.com/linux/';
}
}
and then i put
print "Location: $address/$in{'file'}";
to downlooad.
My logic is correct?!??!?!
------------------
--
Rafael Faria
Flash World - Professional Resources