download script

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
sneakyn8





Posts: 989
Joined: Thu Dec 14, 2006 1:48 pm

download script

Post by sneakyn8 »

i need to know how to make it so that when someone goes to a specific sit they download a file? how is that done and does the page have to be blank or can it have other stuff on it too?
User avatar
Tural




Conceptionist Acolyte Bloodhound Recreator
Socialist Connoisseur Droplet Scorched Earth
Grunge

Posts: 15628
Joined: Thu Jun 16, 2005 3:44 pm
Location: Lincoln, NE
Contact:

Post by Tural »

Shouldn't be too difficult with PHP.
Something like this would work:
http://www.phpit.net/code/force-download/
sneakyn8





Posts: 989
Joined: Thu Dec 14, 2006 1:48 pm

Post by sneakyn8 »

s there a way to do it with html?
User avatar
Tural




Conceptionist Acolyte Bloodhound Recreator
Socialist Connoisseur Droplet Scorched Earth
Grunge

Posts: 15628
Joined: Thu Jun 16, 2005 3:44 pm
Location: Lincoln, NE
Contact:

Post by Tural »

I don't know how to, as you can't really call any functions with HTML, as it is not a scripting language. Everything is static. :|
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Post by Prey »

HTML is just there to place the objects on the page, CSS is there to style them, and a scripting language (javascript, php etc) is there to add the interactivity..

I assume you don't want to use PHP as it's a server-sided language.. in which case, perhaps one of the languages listed under Browser Scripting HERE may help.
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
Post Reply