Hi,
I'm looking for a way to see my code just before it's being processed.
For example: I have a script with some includes/requires and would like to see the resulting script with the includes/requires already added to the current script.
file1.php
<?php
echo "I am file1.php\n";
//some more stuff here for file1.php
?>
file2.php
<?php
echo "I am file2.php\n";
//some more stuff here for file2.php
?>
file3.php
<?php
include("file1.php");
include("file2.php");
echo "I am file3.php\n";
?>
The file3.php script after the includes should look something like this:
<?php
echo "I am file1.php\n";
//some more stuff here for file1.php
echo "I am file2.php\n";
//some more stuff here for file2.php
echo "I am file3.php\n";
?>
Is there any way to see this resulting file from any PHP script?
I was thinking about command-line options but after looking in sites any of the possibilites suited my needs.
Can somebody help me?
Thanks in advance.