vecvagars Posted March 24, 2011 Share Posted March 24, 2011 Hello guys n girls! I have quetio? How to Manage Multiple Google Maps API keys?If I have 2 domain names...It works only on one domain sameple: http://www.balticart.lv/contact-form.phpand http://www.balticart.com/contact-form.phpThis kind a Post was not on forum so I hope it would help ather ppl to...Thx for any answer. Link to comment Share on other sites More sharing options...
vecvagars Posted March 27, 2011 Author Share Posted March 27, 2011 bump........ Link to comment Share on other sites More sharing options...
vecvagars Posted April 2, 2011 Author Share Posted April 2, 2011 realynobady knows? Link to comment Share on other sites More sharing options...
vecvagars Posted April 11, 2011 Author Share Posted April 11, 2011 bumppppp Link to comment Share on other sites More sharing options...
knd Posted August 30, 2011 Share Posted August 30, 2011 for example you can put something like that between <head> </head> part of the code .... <script src="http://maps.google.com/maps?file=api&v=2&key=<? $adres_url=$HTTP_SERVER_VARS["SERVER_NAME"]; if(ereg('balticart.lv',$adres_url)) {echo"FIRST API KEY";} elseif(ereg('balticart.com',$adres_url)) {echo"SECOND API KEY";} else {} ?>" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); .... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now