PHP code inside html (article)

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
bepposun
Posts: 16
Joined: Fri 22. Jun 2007, 17:28

PHP code inside html (article)

Post 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
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

"conf.inc.php"

Code: Select all

$phpwcms['allow_cntPHP_rt']   = 1; //allow PHP replacement tags and includes in content parts
bepposun
Posts: 16
Joined: Fri 22. Jun 2007, 17:28

Post 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
Post Reply