SyntaxFix
Write A Post
Hire A Developer
Questions
You could use PHP's file_get_contents();
<?php $script = file_get_contents('javascriptFile.js'); echo "<script>".$script."</script>"; ?>
For more information on the function:
http://php.net/manual/en/function.file-get-contents.php