Jump to content

Indirect Download file


dreamwest

Recommended Posts

I want to make a download link that doesnt link directly to the file but uses a download.php page to get the file.

 

I not sure how to go about it....

 

Ive got this far :

 

$ID = strip_tags($_GET[id]);
$real_location = "http//site.com/files/".$ID.".jpg";

//Fake url location
$url = downloadLink($ID);

echo "<a href=\"".$url."\">Click here to download file!</a>";

Link to comment
https://forums.phpfreaks.com/topic/157452-indirect-download-file/
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.