ob_start(); include('path/test/includes/dbar.php'); $includedphp = ob_get_contents(); ob_end_clean();