Anonymous
public text v1 · immutablefile 0:
<?php
$f = md5(uniqid());
echo $f,"\n";
passthru("php -f 1 $f");
var_dump(file_get_contents($f));
file 1:
<?php
$f = $argv[1];
$fp = fopen($f, "w+");
fwrite($fp, "foo");
fclose($fp);
file 0:
<?php
$f = md5(uniqid());
echo $f,"\n";
passthru("php -f 1 $f");
var_dump(file_get_contents($f));
file 1:
<?php
$f = $argv[1];
$fp = fopen($f, "w+");
fwrite($fp, "foo");
fclose($fp);