This is a simple replace test. the text in bold should contain "TEST": TEST
now a dynamic block test:
this is block 1.

id 38
name cocomp
age 33


global variables can be parsed directly into the html without assigns:
$_SERVER['HTTP_HOST']=www.phpxtemplate.org
$_SERVER['PHP_SELF']=/XTemplate/ex1.php
$_SERVER['HTTP_USER_AGENT']=CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
etc..
(note that these variables are scanned in the constructor when creating the XTemplate object! so if you need some variables which you have set after creating the template object, you need to call $xtpl->scan_globals() before parsing the actual block!