CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Help! on making a link script

 



Toki
Deleted

Apr 1, 2000, 6:11 PM

Post #1 of 2 (867 views)
Help! on making a link script Can't Post

I need some help on making a script that will redirect to my download files.

I want the script to be able to hide the full path to the files on the download servers.

the problem is that my files are not all on the same server, there are on many different servers on the web.

i have over 2000 files that i have to make links for, so i need the script to work from a database of urls like the following:

id1|http://www.theserver.com/filefolder/
id2|http://www.theserver2.com/filefolder/

The link would be:
http://www.myserver.com/cgi-bin/download.cgi?id1=filename.exe

Which would then redirect to:
http://www.theserver.com/filefolder/filename.exe

I have been pulling my hair out trying to make the script and so for i have got nowhere.

Any help how to do this would be very appreciated.

Thanks



Cure
User

Apr 2, 2000, 9:19 AM

Post #2 of 2 (867 views)
Re: Help! on making a link script [In reply to] Can't Post

Hi

You would use the print "Location: www.url.com\n\n"; to redirect a user.

OR
you could use the CGI->redirect("http://www.url.com");

Cure


[This message has been edited by Cure (edited 04-02-2000).]

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives