Jump to content

Masked download link


moffo

Help me?  

1 member has voted

  1. 1. Help me?

    • Yes
      1
    • No
      0


Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.