Alessandro, I am afraid there is not an easy way to include PHP inside of a template. This was a choice that the eZ team specifically made. What you should do is build an operator that includes the PHP you need access to. Check out http://ez.no/ez_publish/documentation/development/kernel/custom_template_operators and perhaps search for 'operators' on the ez.no site for more information.
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]