Forums | MacLife

You are not logged in.

#1 2003-01-18 2:41 pm

MetalFreak26
Member
From: good 'ol Kentucky
Registered: 2000-06-01
Posts: 156
Website

make link download automatically?

how can i make my mp3 links on my site auto download. i've tried using cgi scripts, but my host doesn't support them yet. any other way to do it? javascript maybe? thanks. btw, the site addy is www.attackthesenses.com


~no matter how hungry you get in OS X, do not eat your kernel.

Offline

 

#2 2003-01-18 3:35 pm

Fracai
Evacipate
From: St. Elsewhere
Registered: 2000-05-25
Posts: 2698

Re: make link download automatically?

you could try a http redirect in your header.  the kinda thing that redirects you to the new location of a website.  only you'd be directing to the mp3.

although it is a mp3 so it might just open in the browser.

try saving it as a .sit or something so it would actually download

do you want it to auto download or auto play?

different things.

but a redirect should work.


   i am jack's amusing sig file
        http://homepage.mac.com/fracai/p/s.png
Satellite Lot :: Second Summer

Offline

 

#3 2003-01-19 3:49 pm

MetalFreak26
Member
From: good 'ol Kentucky
Registered: 2000-06-01
Posts: 156
Website

Re: make link download automatically?

i want the songs to download when users click the link. right now, they have to right click (or control click) and save as. most people have no trouble. some with no knowledge of the net or lacking the ability to follow instructions, simply click the link.... then their browser loads about 20 seconds, runs out of memory, and they tell me it doesn't work:)

i'm not sure how to make a redirected link. any info?
thanks


~no matter how hungry you get in OS X, do not eat your kernel.

Offline

 

#4 2003-01-19 6:58 pm

Scott
Zombie Gorilla
From: Oregon
Registered: 2002-12-07
Posts: 3446
Website

Re: make link download automatically?

A simple link won't do it.  The client browser determines how files with certain extentions behave. 

There are ways to do it with scripting, IIRC you send it through the header.  You will need to have php or perl or the like.


http://www.greatgamesexperiment.com/images/logo_kit/468x60-Blue.gif

Offline

 

#5 2003-02-06 6:33 pm

Basseq
Fixxy of F&S fame
From: D.C.
Registered: 2002-12-18
Posts: 3087
Website

Re: make link download automatically?

You could also link to your FTP sever (if you have one) using anonymous access.


Basseq is me, John Whittet.
(Finishing the remainder of the thought expressed in the post has been left as an exercise for the reader.)

Offline

 

#6 2003-02-06 8:10 pm

Fracai
Evacipate
From: St. Elsewhere
Registered: 2000-05-25
Posts: 2698

Re: make link download automatically?

or compress it.


   i am jack's amusing sig file
        http://homepage.mac.com/fracai/p/s.png
Satellite Lot :: Second Summer

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson