When inserting php code into a body of a custom island,
ex.
Quote
/* PHP CODE HERE */
$sponnum = 1;
/* BODY HERE */
$body = <<<EOF
<?php echo '<center>';
echo '$sponnum';
echo '</Center>';
?>
<a href=..................
EOF;
The Island works fine.
But when it was saved the "?>" ending the php in the body isn't there anymore and has to be re-entered when the island is edited again.
Then when executed, you get an error.
Quote
Parse error: syntax error, unexpected '<' in /home/lare/public_html/bhweb/ubbthreads/cache/portal_box_7.php on line 14

Am I doing something wrong???

Last edited by Rick; 05/31/2007 4:27 PM.