Page 1 of 1

PHP code inside html (article)

Posted: Fri 22. Jun 2007, 17:39
by bepposun
I try to execute some PHP code from an article (exactly I would like to read a table from the database using PHP and create a html table out of it).

For testing I just put in:

<?php
echo "test";
?>

I also tried

[PHP]
echo "test";
[/PHP]

without success :( Maybe I'm missing something basic?
In the template section it works though...

Regards, Beppo

Posted: Fri 22. Jun 2007, 18:11
by DeXXus
"conf.inc.php"

Code: Select all

$phpwcms['allow_cntPHP_rt']   = 1; //allow PHP replacement tags and includes in content parts

Posted: Fri 22. Jun 2007, 22:08
by bepposun
Aha, exactly, thanks!
DeXXus wrote:"conf.inc.php"

Code: Select all

$phpwcms['allow_cntPHP_rt']   = 1; //allow PHP replacement tags and includes in content parts