joyser Posted May 3, 2009 Share Posted May 3, 2009 Hello, how do i go about saving a file which is on a different server (a .swf file) onto my server? Link to comment https://forums.phpfreaks.com/topic/156692-saveing-files-that-are-on-different-servers/ Share on other sites More sharing options...
jackpf Posted May 3, 2009 Share Posted May 3, 2009 I think you need to read up on cURL. Link to comment https://forums.phpfreaks.com/topic/156692-saveing-files-that-are-on-different-servers/#findComment-825079 Share on other sites More sharing options...
joyser Posted May 3, 2009 Author Share Posted May 3, 2009 hmm is there not a simple function like the one used for uploading files? Link to comment https://forums.phpfreaks.com/topic/156692-saveing-files-that-are-on-different-servers/#findComment-825116 Share on other sites More sharing options...
jackpf Posted May 3, 2009 Share Posted May 3, 2009 Well, you could probably use file_get_contents() and then write to the file with fopen(). cURL would be faster and more secure though I reckon. Also, I'm not sure if you can use file_get_contents() on remote files with safe mode turned on (that is, if you have safe mode turned on, which most hosts do). Link to comment https://forums.phpfreaks.com/topic/156692-saveing-files-that-are-on-different-servers/#findComment-825125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.