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 Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/ Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 ? Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-574611 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??? Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-574613 Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 what do you mean? Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-574624 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 Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-574629 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 Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-574634 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) Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-574636 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? Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-574641 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 Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-574642 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 ? Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-574648 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. Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-574656 Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 help moffo please Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-575234 Share on other sites More sharing options...
moffo Posted June 26, 2008 Author Share Posted June 26, 2008 helpppppppppppppppppphelpppppppppppppppppppppppppppppppphelppppppppppppppppppppppp Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-575395 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 Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-575403 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? ??????????????????????? Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-575520 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 } ?> Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-575563 Share on other sites More sharing options...
moffo Posted June 27, 2008 Author Share Posted June 27, 2008 please help me more... Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-575647 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. Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-575660 Share on other sites More sharing options...
moffo Posted June 27, 2008 Author Share Posted June 27, 2008 please vote. Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-575681 Share on other sites More sharing options...
mrbuter Posted June 27, 2008 Share Posted June 27, 2008 good thread. would read again. Link to comment https://forums.phpfreaks.com/topic/111952-masked-download-link/#findComment-575682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.