<?php is the suggested method. Not all servers allow short_tags. . since it conflicts with the XML tag.
Another thing, to add to what falkencreative posted above, an "included" file is always assumed to contain html and is parsed as such unless you add the php tokens. (<?php ... code here ... ?>)