Code: Select all
$somecode = "<? someFunction();
function someFunction(){
echo \"you successfully ran someFunction\";
} ?" . ">";Code: Select all
file_put_contents("/dev/shm/1.php", $somecode);
$fp = fopen('php://temp', 'r+');
include '/dev/shm/1.php';
Code: Select all
file_put_contents("1.php", $somecode);
$fp = fopen('php://temp', 'r+');
include '1.php';
Code: Select all
$allFunctions=fopen('php://temp', 'r+');fwrite($allFunctions,$array);rewind($allFunctions);//fclose($allFunctions);
include 'php://temp';