Parsing Includes to Single File
I've been searching around trying to find a util or script that will take a php script, parse all the include, include_once, require, and require_once statements, then create a new file with all the code joined together.
This:
To This:
Any ideas?
Thanks.
This:
<?php
include('foo.php');
include('bar.php');
echo "Hello World."
?>
To This:
<?php
echo "This is foo.php";
echo "This is bar.php";
echo "Hello World.";
?>
Any ideas?
Thanks.
