- ob_start: documentation ( source)
- passthru: documentation ( source)
- ob_get_contents: documentation ( source)
- ob_end_clean: documentation ( source)
<?
ob_start();
passthru("ls");
$var = ob_get_contents();
ob_end_clean(); //Use this instead of ob_flush()
?>