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. Quote Link to comment 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 Quote Link to comment 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. 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.