xfighter Posted October 26, 2008 Share Posted October 26, 2008 Hello Experts , I have a small issue it may be complicated but it's small & I guess it would be easy for experts like you guys , anyway the story is that I have 2 webhosts lets say for example : The first : http://www.server.com The second : http://www.host.com I have plenty of files uploaded on the host http://www.host.com the link of the files on that domain look like this : http://www.host.com/download.php?login=xfighter&psw=something&file=game.rar this is an example of the download link of game.rar file what I need is a php file to upload on the first host (http://www.server.com) where when I excecute this for example : http://www.server.com/download.php?file=game.rar , it redirects the user to the link http://www.host.com/download.php?login=xfighter&psw=something&file=game.rar *****& Without Showing It To The Users***** the file must be valid to be adaptive to be clearer ; when I excecute the link http://www.server.com/download.php?file=zizo.zip the file must take the users to http://www.host.com/download.php?login=xfighter&psw=something&file=zizo.zip I want to be able to control the last string (filename) in the php I intend to create.. Any Ideas?? Link to comment https://forums.phpfreaks.com/topic/130204-phpid/ Share on other sites More sharing options...
trq Posted October 26, 2008 Share Posted October 26, 2008 Sounds like a job for mod_proxy. Link to comment https://forums.phpfreaks.com/topic/130204-phpid/#findComment-675237 Share on other sites More sharing options...
xfighter Posted October 26, 2008 Author Share Posted October 26, 2008 am sorry I don't understand!! am not that professional in php , I need to do this in order to hide my login info thats all Link to comment https://forums.phpfreaks.com/topic/130204-phpid/#findComment-675241 Share on other sites More sharing options...
corbin Posted October 26, 2008 Share Posted October 26, 2008 Mod proxy would work perfectly for this. PHP wouldn't even be needed. If you did want to use PHP, you would have to write a script that would fetch the remote stuff and read it back out. I don't think we should need to be more specific. Just google mod proxy. (Or if you want to do it the PHP way, google file_get_contents, fopen, cURL, or whatever.) Oh, just so you know, I generally don't approve of scripts like this. It's kind of a dick move to allow your users to download a password protected file on a different host. Link to comment https://forums.phpfreaks.com/topic/130204-phpid/#findComment-675251 Share on other sites More sharing options...
xfighter Posted October 26, 2008 Author Share Posted October 26, 2008 Oh I see , thanx anyway & I apologize if I violated any of your codes guys ..... Sorry & thanx for the hints Link to comment https://forums.phpfreaks.com/topic/130204-phpid/#findComment-675256 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.