Use PHP in html module?

eiNfach-heNNiNg

Joined: 2006-04-23
Posts: 30
Posted: Sun, 2006-05-21 16:51

Hi!
I want to use some PHP Code in a file of the html mod.
But if I try to add php code there, it doesn't works!
I just want to include a file from the local server.
Has anybody an idea for this problem, so that I can add this php code:
<?php include("file.php"); ?>

Thx!

 
KingOfN00bz

Joined: 2005-09-21
Posts: 9
Posted: Wed, 2006-06-07 15:04

Add the code in your /modules/html/templates/[local/]your.tpl like that:

{php}
include("file.php");
{/php}

KingOfN00bz