You can try this. It only gets the output of file.php though, not the php code itself.
<?
ob_start(); // Start output buffering
include ("file.php"); // All output goes to buffer
$buffer = ob_get_contents(); // Assign buffer to a variable
ob_end_clean(); // Clear buffer and turn off output buffering
print $buffer;
?>