Hello,

this is a basic html file that loads a google map. my problem is, if this goes in to a php files as shown below, it does not load. can any one pls have a look?

Code:
<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <style type="text/css">
      html { height: 100% }
      body { height: 100%; margin: 0; padding: 0 }
      #map-canvas { height: 100% }
    </style>
  </head>
  <body>

    <script type="text/javascript"
      src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA6ANjvY-ldlqgM27iEz1s7_FRkVcir8ec&sensor=true">
    </script>
    <script type="text/javascript">
      function initialize() {
        var mapOptions = {
          center: new google.maps.LatLng(-34.397, 150.644),
          zoom: 8,
        };
        var map = new google.maps.Map(document.getElementById("map-canvas"),
            mapOptions);
      }
      google.maps.event.addDomListener(window, 'load', initialize);
    </script>
  
    <div id="map-canvas"/>
  </body>
</html>
same thing in php

PHP Code:
echo "
    <script type=\"text/javascript\"
      src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyA6ANjvY-ldlqgM27iEz1s7_FRkVcir8ec&sensor=true\">
    </script>
    <script type=\"text/javascript\">
      function initialize() {
        var mapOptions = {
          center: new google.maps.LatLng(-34.397, 150.644),
          zoom: 8,
        };
        var map = new google.maps.Map(document.getElementById(\"map-canvas\"),
            mapOptions);
      }
      google.maps.event.addDomListener(window, 'load', initialize);
    </script>


 <div id=\"map-canvas\"/></div>
</div>"