Hi guys, I want to download a file from a remote server and place it in a folder on my own server (I have permission to do this btw). The file in question is an XML file. I'm not sure how to go about doing this and any help is much appreciated. Thanks.
You could use a simple php script.
<?php $file = 'abc.xml'; $data = file_get_contents( "http://server.com/$file" ); file_put_contents( $file , $data ); ?>
Thanks HalfaBee, I'll look into the code you have provided in the hope of finding a solution.