- file_get_contents: documentation ( source)
- base64_decode: documentation ( source)
- tempnam: documentation ( source)
- file_put_contents: documentation ( source)
<?php
$tmp1=tempnam("/tmp", "prvieval");
$tmp2=tempnam("/tmp", "drugieval");
$cntnt='base64_decode("ZWNobyAnYSc7")';
echo "xxxxx";
echo '<?php file_put_contents("' . $tmp2 . '","<?php ' . base64_decode("ZWNobyAnYSc7") . ';");';
echo "yyyyy";
file_put_contents($tmp1, '<?php file_put_contents("' . $tmp2 . '","<?php ' . base64_decode("ZWNobyAnYSc7") . ';");');
echo file_get_contents($tmp1); echo "-----";
include($tmp1);
include($tmp2);