|]@', '_', urldecode($_POST['filename'])) : 'saved') . '.svg'; // These characters are indicated as prohibited by Windows $output_svg = urldecode($svg); $file = $filename; $fh = fopen($file, 'w') or die("Can't open file"); fwrite($fh, $output_svg); fclose($fh); ?>