Simple php site with javascript -
<?php $site= <<< end <script src="auto.js"></script> <html> <body> body </body> </html> end; echo($site); ?>
i try make simple php site javascript javascript not execute. wrong? have auto.js file in same dir:
alert("hello world");
try moving script inside html.
<?php $site= <<< end <html> <script src="auto.js"></script> <body> body </body> </html> end; echo($site); ?>
also make sure js file in same folder script.
Comments
Post a Comment