Menu

[246a80]: / build / put.php  Maximize  Restore  History

Download this file

20 lines (20 with data), 457 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<?php
$inputdata = fopen("php://input", "r");
$s = "";
while ($data = fread($inputdata, 1024)) {
$s .= $data;
}
fclose($inputdata);
$query = $_SERVER['QUERY_STRING'];
$result = array();
parse_str($query, $result);
$name = $result['name'];
$pwd = getcwd();
$dir = preg_replace('/\/[[:alnum:]_]+\.xml/', '', $name);
if (!file_exists($dir)) {
mkdir($dir);
}
$outputdata = fopen($name, "w");
fwrite($outputdata, $s);
fclose($outputdata);
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.