Hallo,
ich versuche die la und lng einer Adresse zu ermitteln. Leider erhalte ich folgende Fehlermeldung:
In Xampp funktioniert es ab.
Hat vielleicht einer eine Idee, woran es online scheitert?
Gruß
Matze
ich versuche die la und lng einer Adresse zu ermitteln. Leider erhalte ich folgende Fehlermeldung:
Notice: Undefined offset: 0 in /mnt/webb/b1/90/53847690/htdocs/includes/conf.class.php on line 515 Notice: Trying to get property of non-object in /mnt/webb/b1/90/53847690/htdocs/includes/conf.class.php on line 515 Notice: Trying to get property of non-object in /mnt/webb/b1/90/53847690/htdocs/includes/conf.class.php on line 515 Notice: Trying to get property of non-object in /mnt/webb/b1/90/53847690/htdocs/includes/conf.class.php on line 515 Notice: Undefined offset: 0 in /mnt/webb/b1/90/53847690/htdocs/includes/conf.class.php on line 516 Notice: Trying to get property of non-object in /mnt/webb/b1/90/53847690/htdocs/includes/conf.class.php on line 516 Notice: Trying to get property of non-object in /mnt/webb/b1/90/53847690/htdocs/includes/conf.class.php on line 516 Notice: Trying to get property of non-object in /mnt/webb/b1/90/53847690/htdocs/includes/conf.class.php on line 516 Warning: Cannot modify header information - headers already sent by (output started at /mnt/webb/b1/90/53847690/htdocs/includes/conf.class.php:515) in /mnt/webb/b1/90/53847690/htdocs/ObjektEdit.php on line 7
PHP:
$address = "";
$address .= mysql_real_escape_string($_POST['addr1'])." ";
$address .= mysql_real_escape_string($_POST['azipcode'])." ";
$address .= mysql_real_escape_string($_POST['acity'])." ";
$geocode = file_get_contents('http://maps.google.com/maps/api/geocode/json?address='.urlencode($address).'&sensor=false');
$output = json_decode($geocode);
$latitude = $output->results[0]->geometry->location->lat;
$longitude = $output->results[0]->geometry->location->lng;
In Xampp funktioniert es ab.
Hat vielleicht einer eine Idee, woran es online scheitert?
Gruß
Matze