<?php
$source="input.txt";
$data = '<?php'."\n"."require_once('../file.php');"."\n".'echo"hello";'."\n";
$data .=file_get_contents($source);
$data .='echo "end";'."\n".'?>';
$outputFile="output.php";
file_put_contents($outputFile, $data, FILE_APPEND);
?>
|