You want to put the code AFTER the first EOF, and BEFORE the last EOF...

Here is the code for my Ad Island:

Code
/* BODY HERE */

$body = <<<EOF

<DIV align=center><BR>
<IFRAME width="125" height="185" name="apciframe" id="apciframe" marginwidth="0" marginheight="0" src="http://affiliates.allposters.com/PosterStore/419546_PosterStore.asp" scrolling="no" frameborder="0"><A class="APCAnchor" HREF="http://affiliates.allposters.com/link/redirect.asp?AID=45088&PSTID=5&LTID=16&TID1=2&lang=1">Buy Posters at AllPosters.com </A></IFRAME>
<HR height=1>
<script type="text/javascript">
<!--
google_ad_client = "pub-3411120354601471";
google_ad_width = "125";
google_ad_height = "125";
google_ad_format = "125x125_as";
google_ad_type = "text_image";
//2006-10-16: UBB 1
google_ad_channel = "9539344244";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "FF0000";
google_color_text = "333333";
google_color_url = "CC0000";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<BR><BR>
<!--// Scarface, The Godfather, Mario Puzo, Mafia, Sopranos, Goodfellas, Casino, De Niro, Pacino, Brando, Video Game //-->
<font size=1 color=blue><B>Wanna help out?</B> Just click the red Google link above 1-2x/day - You don't have to buy!</font>
</DIV>

EOF;



GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 8.1.34 / MySQL 5.7.23-23 / Apache 2.4.67
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP