I've found what's causing the problem myself...
putting
Code:
<? include("last10.php"); ?>
in a text-block is the correct solution....
BUT: the problem is caused by some lazy-programming in THEME.PHP file of your phpnuke's theme:
Look for
Code:
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
at the end of the THEME.PHP file
there should be a statement somewhere (in the middle) saying
it might be surrounded by other code....
You'll have to issolate the "echo $content" statement and replace it with:
Code:
if (substr($content,0,2) != "<?") echo $content;
else {
$content = str_replace ("<?", "", $content);
eval($content);}
Now you can use the "<? include" statement to include ANY PHP file...