Maps with Squid Proxy

Not a really a bug, but I was having issues with maps displaying and then remembered a problem with getting data back from google when connected through a squid proxy.

Add the lines:
//deal with squid proxy
curl_setopt($ch, CURLOPT_PROXY, ‘tcp://your.proxyserver:proxyport’); //substitute the ip or dns name of the squid proxy and the port

above $json_contents = curl_exec($ch); in


I saw a lot of other posts with similar issues and hope this helps.