In lines 185-190 is written:
<p>When everything is done you will find a <span
class="mono">templates.so</span>
file in the <span class="mono">modules/</span>
directory. This is the compiled
loadable Templates module. Copy it to the same
directory where your script
is and use the following PHP code to load the
module:</p>
<p class="screen"><?
if(!extension_loaded('templates')) dl('php_templates');
?></p>
This doesn't work because it must be dl('templates') and
as well it's not needed to copy templates.so to the
script directory.