Thursday, 8 August 2013

Simple php site with javascript

Simple php site with javascript

<?php
$site= <<< END
<script src="auto.js"></script>
<html>
<body>
body
</body>
</html>
END;
echo($site);
?>
I try to make a simple php site with JavaScript but the JavaScript does
not execute. Where am I wrong? I have the auto.js file in the same dir:
alert("Hello world");

No comments:

Post a Comment