Fixed save.php

This commit is contained in:
Barry Silverman 2010-09-27 20:56:47 -04:00
parent b8d2872246
commit d94116d257

View File

@ -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);