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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -