<?php ob_start(); require_once('/home/path/file.php'); output_NewestThreads(10,"36"); $includedphp = ob_get_contents(); ob_end_clean(); bla bla $includedphp bla bla ?>