/
save.php
32 lines (30 loc) · 1 KB
/
save.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>WME Course Exercise HTML</title>
<meta name="description" content="WME Übung 1 Gruppe#21">
<meta name="keywords" content="HTML,CSS,JavaScript">
<meta name="author" content="Jan Bickel, Radzhiv Khayretdinov">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,300">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<script src="js/script.js"></script>
</head>
<body>
<?php
require_once("class/world_data_parser.php");
$parser = new WorldDataParser();
$d_array = $parser->parseCSV("res/world_data_v1.csv", 1000, ',');
$rv = $parser->saveXML($d_array, "res/world_data.xml");
if($rv == true){
print("Speichern erfolgreich: $rv");
}
else{
print("Speichern nicht erfolgreich: $rv");
}
?>
</body>
</html>