mirror of
https://github.com/trebonian/visual6502.git
synced 2025-01-18 05:33:57 +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
|
<?php
|
||||||
|
|
||||||
$filename = $_REQUEST['name'];
|
$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');
|
$f = @fopen($filename, 'w');
|
||||||
if ($f) {
|
if ($f) {
|
||||||
$bytes = fwrite($f, $data);
|
$bytes = fwrite($f, $data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user