I would like to print the taxonomy terms instead of the date (or the username).

But when I try with the variable $terms in the node.tpl.php I am getting an error : undefined variable $terms... in node.tpl.php

  <div class="node-meta">
    <?php if ($display_submitted): ?>
      <div class="date">
        <div class="day"><?php print format_date($node->created, 'custom', 'd') ?></div>
        <div class="month-and-year">
          <div class="month"><?php print format_date($node->created, 'custom', 'M') ?></div>
          <div class="year"><?php print format_date($node->created, 'custom', 'Y') ?></div>
      <div class="user-name"><?php print $name; ?></div>
    <?php endif; ?>
    <?php print render($content['links']['comment']); ?>
  </div> <!-- /.node-meta -->

How can I do to display the termes there instead of of the links at the bottom of the node ?