visual6502/save.php

19 lines
280 B
PHP
Raw Normal View History

<?php
$filename = $_REQUEST['name'];
2010-09-28 00:56:47 +00:00
file_put_contents1($filename, file_get_contents("php://input"));
2010-09-28 00:56:47 +00:00
function file_put_contents1($filename, $data) {
$f = @fopen($filename, 'w');
if ($f) {
$bytes = fwrite($f, $data);
fclose($f);
return $bytes;
}
return false;
}
?>