I am trying to create a script that will get multiple HTML files that could have PHP code in them and JavaScript code and make a big HTML/PHP file with that. E.g home.php, news.php, something.php Will be combined to form Index.php.
Before anyone ask why I need a file like that: the reason is to create 1 file that uses responsible layout for touch-swipe using parallax.
I've tried file_get_contents() but if the html has a simple <?php echo "hello world";?> it wont output it.
How could I merge multiple HTML files with anything in them (JS, php, etc)?