visual6502/save.php
Barry Silverman 4d8da5b680 First Commit
2010-09-17 22:42:04 -04:00

19 lines
296 B
PHP

<?php
$filename = $_REQUEST['name'];
file_put_contents($filename, file_get_contents("php://input"));
function file_put_contents($filename, $data) {
$f = @fopen($filename, 'w');
if ($f) {
$bytes = fwrite($f, $data);
fclose($f);
return $bytes;
}
return false;
}
?>