title: API key for multiple domain script, google map V2
body: <p>could any one check why my script below is not working please?</p>
  
  <pre><code>&lt;script src="http://maps.google.com/maps?file=api&amp;amp;v=2.x&amp;amp;key=
  &lt;?php  
  $this-&gt;googleMapsApiKey = $this-&gt;getValueFromDB("google", "googleMapsApiKey");
              if ($_SERVER['HTTP_HOST']=='www.ABC.info') { 
          $this-&gt;googleMapsApiKey = "Googlemap-keys";
              } elseif ($_SERVER['HTTP_HOST']=='www.CBA.com') { 
          $this-&gt;googleMapsApiKey = "Googlemap-keys";
          } 
  ?&gt;" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Thanks a lot!!</p>