I want to know if I can include php scripts in javascript[1] the same way it can be done in html[2]
php
javascript
html
server.php:
I tested this solution on PHP 5.5. 1. Create a file called myScript.php.
// myScrpt.php content:
// test.php content:
Include php Script
The result is: