[Solved] Download and save swf file on my server with php [closed]


You can save any file with PHP using the file_get_contents function to get the raw data and the file_put_contents function to save to disk. Make sure you have write access to the file location you use for file_put_contents.

Also for security reasons I would not store any of the files you retrieve like this in a path that can be executed directly. So try to store them below the document root.

<?php
$swffile = file_get_contents('http://www.example.com/game.swf');
file_put_contents('localgame.swf', $swffile);
?>

1

solved Download and save swf file on my server with php [closed]