Page 1 of 1
download script
Posted: Tue Feb 05, 2008 4:25 pm
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?
Posted: Tue Feb 05, 2008 5:04 pm
by Tural
Shouldn't be too difficult with PHP.
Something like this would work:
http://www.phpit.net/code/force-download/
Posted: Tue Feb 05, 2008 5:15 pm
by sneakyn8
s there a way to do it with html?
Posted: Tue Feb 05, 2008 5:16 pm
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.
Posted: Wed Feb 06, 2008 11:14 am
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.