1
0
mirror of https://github.com/mist64/perfect6502.git synced 2025-01-16 10:30:10 +00:00
perfect6502/save.php

19 lines
296 B
PHP
Raw Normal View History

2010-09-17 22:42:04 -04:00
<?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;
}
?>