I am a ColdFusion Developer, got some work to do on PHP, below is a very basic thing, but being CF programmer you are used to using <cfsavecontent> tag to save contents of entire file, how can this be done using php, well sounds to be very simple
ob_start();
include('file.php');
$fileContent = ob_get_contents();
ob_end_clean();
....