Include file in variable


I would like to display content of a php file by using include in the following script. Can some gurus advise what I can do to accomplish this :

$ret .='
<div id="main_bar_bottom">

<div align="center">
<div class="para"  id="1" style="display:none;">
<div class="tab_full_box">
<a href="'.ProfL($ID).'"><img src="'.$site['url'].'hat.gif" align="absmiddle" border="0"/><img src="'.$site['url'].'hat.gif" align="absmiddle" border="0"/>'.INCLUDE PHP file here.'</a>

I tried to put include"file.php"; in the INCLUDE PHP file here part of the script but error occured.

PLease advise, THanks.

You can’t include a PHP file in the middle of building a string. If you want to make the output of the included file part of this string, you’ll need to use output buffering to capture it.