I am trying to create a Google map for multiple domains, the php script is below:
$ My_google_map_keys = array ('host1' = & gt; 'key1', 'host2' = & gt; '2 '); $ Conf = array ('google_maps_key' = & gt; $ my_google_map_keys [$ _ server ['HTTP_HOST']]);
But after putting it on my head, I can not work it. Can anyone help please?
Sorry,
Basically, I use the script below for API keys that are working fine:
I use now I want this for many domains, and replaces it by php script, but it does not work. What else should I do with any idea, or you can give me some tips on how to update in V3.
Many thanks!
You may want to upgrade to Google Maps API's V3 - the API key is no longer required.
Comments
Post a Comment