moffo Posted June 26, 2008 Share Posted June 26, 2008 Hello, Could someone help me to make my own link like that: download.asp?download=song1&songid=14918&letter=T&servern=3 When you click on it will redrect to the download file. Please anyhelp? i'm new here also! Regards Quote Link to comment Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 ? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2008 Share Posted June 26, 2008 look at your links extension and tell me why you are posting this here??? Quote Link to comment Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 what do you mean? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2008 Share Posted June 26, 2008 what is a .asp page??? we no know that not open source asp junk Quote Link to comment Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 Oh sorry i forgot to dlete the extension but i was meaning about this: ?download=song1&songid=14918&letter=T&servern=3 Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2008 Share Posted June 26, 2008 like <?php echo "<a href="mysite.com/download.php?download=song&songid=149&letter=T&servern=3">Click Here</a>"; ?> There you go (FYI I'm making fun of you cause you can't ask a question right) Quote Link to comment Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 and how can i redirect it to a download file? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2008 Share Posted June 26, 2008 the link doesn't redirect, It uses a database backing to find the requested file and distribute it to the client. It doesn't just "happen" you need to ask more what u don't get cause I'm not writing it all out 4 u Quote Link to comment Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 ok so what must we do to let it request example file hjgjg.zip ? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2008 Share Posted June 26, 2008 I don't see why you want to redirect you haven't given a reason and you don' t know why people redirect like that in the first place so why not just go directly to the file and be done. Quote Link to comment Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 help moffo please Quote Link to comment Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 helpppppppppppppppppphelpppppppppppppppppppppppppppppppphelppppppppppppppppppppppp Quote Link to comment Share on other sites More sharing options...
Wolphie Posted June 26, 2008 Share Posted June 26, 2008 You aren't going to get help that way. Read some documentation: http://uk2.php.net/manual/en/reserved.variables.get.php Quote Link to comment Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 where do i need to to have the donwload link for example : ffssdf.zip? ??????????????????????? Quote Link to comment Share on other sites More sharing options...
Stooney Posted June 26, 2008 Share Posted June 26, 2008 assuming the link is http://site.com/index.php?songid=14918 Note: this lacks many simple aspects like security, logic, etc. But if you don't understand this then you need to study up more as you are in over your head. <?php $get=mysql_query("SELECT path FROM songs WHERE song_id='$_GET[songid]'"); if(mysql_num_rows($get)==1){ $get=mysql_fetch_array($get); echo '<a href="http://site.com'.$get['path'].'">Click Here</a>'; { else{ //invalid song id } ?> Quote Link to comment Share on other sites More sharing options...
moffo Posted June 27, 2008 Author Share Posted June 27, 2008 please help me more... Quote Link to comment Share on other sites More sharing options...
Nexy Posted June 27, 2008 Share Posted June 27, 2008 You are not going to get any help when you don't even try to learn what they are telling you to do. If you want someone to make it for you, than you should check the freelance forum. Unless some really nice person comes along the way. Quote Link to comment Share on other sites More sharing options...
moffo Posted June 27, 2008 Author Share Posted June 27, 2008 please vote. Quote Link to comment Share on other sites More sharing options...
mrbuter Posted June 27, 2008 Share Posted June 27, 2008 good thread. would read again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.