API key for multiple domain script, google map V2

itusernamec6

New Member
could any one check why my script below is not working please?\[code\]<script src="http://maps.google.com/maps?file=api&v=2.x&key=<?php $this->googleMapsApiKey = $this->getValueFromDB("google", "googleMapsApiKey"); if ($_SERVER['HTTP_HOST']=='www.ABC.info') { $this->googleMapsApiKey = "Googlemap-keys"; } elseif ($_SERVER['HTTP_HOST']=='www.CBA.com') { $this->googleMapsApiKey = "Googlemap-keys"; } ?>" type="text/javascript"></script>\[/code\]Thanks a lot!!
 
Back
Top