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