darkwolf Posted June 30, 2007 Share Posted June 30, 2007 I'm wanting to use PHP to transfer files from remote server. I have two servers, www.darkwolf.ca and www.vs-videos.com. Lets ignore the fact of FTP access. I want to download a video on vs-videos.com to darkwolf.ca... How would I go about doing this? Link to comment https://forums.phpfreaks.com/topic/57896-downloading-from-remote-server/ Share on other sites More sharing options...
corbin Posted June 30, 2007 Share Posted June 30, 2007 There's 10 different ways you could do this, all depending on where the video is stored, and how you access it.... If the video is stored at http://vs-video.com/video.mpeg and no user authentication or anything of that type is used, then you could try using fopen('http://vs-video.com/video.mpeg'); if your host has it enabled. There are some other ways too, but that would be the easiest if it's enabled. Link to comment https://forums.phpfreaks.com/topic/57896-downloading-from-remote-server/#findComment-286886 Share on other sites More sharing options...
darkwolf Posted June 30, 2007 Author Share Posted June 30, 2007 Yes, sorry for not giving full information. The video is how you described it, http://vs-video.com/video.mpeg no authentication. I'll check the fopen() command. Thanks, google wasn't being so helpful for this one. Link to comment https://forums.phpfreaks.com/topic/57896-downloading-from-remote-server/#findComment-286895 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.