PHP Manual

PEAR Manual

Smarty Manual

PostgreSQL

MySQL Manual

Perl Manual

{php}

{php} tags allow php to be embedded directly into the template. they will not be escaped, regardless of the $php_handling setting. this is for advanced users only, not normally needed.

example 7-17. {php} tags

{php}
   // including a php script directly
   // from the template.
   include('/path/to/display_weather.php');
{/php}

technical note: to access php variables in {php} blocks you may need to use the php global keyword.

example 7-18. {php} tags with global

{php}
   global $foo, $bar;
   if($foo == $bar){
     // do something
   }
{/php}

see also $php_handling, {include_php}, {include} and componentized templates.