mirror of
https://github.com/trebonian/visual6502.git
synced 2024-11-20 04:32:02 +00:00
19 lines
296 B
PHP
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;
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
|