websch/extras/server-save/.svn/text-base/svg-editor-save.php.svn-base

9 lines
183 B
Plaintext

<?php
$svg = $_REQUEST["svg_data"];
$svg_data = urldecode($svg);
$file = "saved.svg";
$fh = fopen($file, "w") or die("Can't open file");
fwrite($fh, $svg_data);
fclose($fh);
?>