mirror of
https://github.com/trebonian/visual6502.git
synced 2024-12-30 17:31:01 +00:00
Fixed save.php
This commit is contained in:
parent
b8d2872246
commit
d94116d257
4
save.php
4
save.php
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
$filename = $_REQUEST['name'];
|
||||
file_put_contents($filename, file_get_contents("php://input"));
|
||||
file_put_contents1($filename, file_get_contents("php://input"));
|
||||
|
||||
function file_put_contents($filename, $data) {
|
||||
function file_put_contents1($filename, $data) {
|
||||
$f = @fopen($filename, 'w');
|
||||
if ($f) {
|
||||
$bytes = fwrite($f, $data);
|
||||
|
Loading…
Reference in New Issue
Block a user