dmaksimov Posted February 13, 2011 Share Posted February 13, 2011 Hello everyone, I have a question. I'm trying to figure out a way to make it so that when a user visits a page for a certain file, they are given the file to download but can't see the link to that file. Example: There is a file on http://serverB.com/file.rar A person goes to http://serverA.com/?file=file.rar They can download http://serverB.com/file.rar without seeing the link to that file. Is there any way to do this? Thanks. Link to comment https://forums.phpfreaks.com/topic/227498-direct-to-hidden-link/ Share on other sites More sharing options...
BlueSkyIS Posted February 13, 2011 Share Posted February 13, 2011 one possibility is readfile(), which can pass a file to the browser without exposing the path to the actual file. http://php.net/manual/en/function.readfile.php Link to comment https://forums.phpfreaks.com/topic/227498-direct-to-hidden-link/#findComment-1173467 Share on other sites More sharing options...
dmaksimov Posted February 13, 2011 Author Share Posted February 13, 2011 Would readfile work for rapidshare files? If I input a link into readfile and then give it off to the user, but they can't see the rapidshare link. Link to comment https://forums.phpfreaks.com/topic/227498-direct-to-hidden-link/#findComment-1173480 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.