Commit fc10af50 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

php does not like ../?

parent 5ba8aa5d
......@@ -243,6 +243,8 @@ function parse_kml($path,$file){
if (is_file($master_kml)){
$xml = simplexml_load_file($master_kml);
$file = "../".($xml->name)."/".($xml->name);
$path = dirname($path);
$file = "/".($xml->name)."/".($xml->name);
}
$pf = "$path/$file.kml";
......@@ -260,7 +262,7 @@ function parse_kml($path,$file){
}
}else{
echo "File not found, you suck!\n";
//echo "File not found ".$pf."\n";
$res = <<<TEXT
<Camera>
<longitude>-111.9328843</longitude>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment