La capture PHP inclut


ob_start();
include 'test.php';
$output = ob_get_clean();
Annoyed Aardvark