Er is naar mijn idee plotseling iets mis gegaan met een postcodezoeker en ik zou ongelooflijk erg geholpen zijn met je hulp.
Ik krijg de volgende error:
Warning: fopen(http://maps.google.nl/maps/geo?output=json&q=hoorn&key=ABQIAAAAafxZrwk5qMSTuPdmkIrHehTczAKx1oMHJ3hF3F5TkrJf8uJNeRQ4yxbxQMuRQnmadrW6QRN3vWPlmw) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden *HIER STOND MIJN VOLLEDIGE PAD*/components/com_mtzcssearch/mtzcssearch.php on line 3636
Warning: fclose(): supplied argument is not a valid stream resource in *HIER STOND MIJN VOLLEDIGE PAD*/components/com_mtzcssearch/mtzcssearch.php on line 3638
En dit is de functie waarin het fout gaat (Regel 3636 is deze regel:
<?php
$gm=fopen("$fullUrl",'r');)
function sendGeoQuery($url,$q,$apikey = '') {
$fullUrl = $url . urlencode($q);
if($apikey) $fullUrl .= '&key='.$apikey;
if(ini_get("allow_url_fopen")) {
$gm=fopen("$fullUrl",'r');
$tmp=@fread($gm,30000);
fclose($gm);
} else {
$ch = curl_init();
$timeout = 20; // set to zero for no timeout
curl_setopt($ch, CURLOPT_URL, "$fullUrl");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$tmp= curl_exec($ch);
curl_close($ch);
}
?>
Als je de volledige mtzsearch.php code nodig hebt hoor ik het graag. Bij voorbaat dank voor je hulp!
Met vriendelijke groet,
Rik Wanders