修改php.ini
; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.  
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On

解决方案 »

  1.   

    谢谢vvkl 问题已经解决
      

  2.   

    不赞成以短标签形式.
    会跟XML等文档申明冲突.
    XML亦是 <?开头
      

  3.   

    楼上正解.
    <?php echo $row[tid]; ?>
    <?=$row[tid]?> 
    只多写2个字而已.
      

  4.   

    中国人应该拥有自己的标志语言,就用 <{  }> 标志吧!
      

  5.   

    得了吧,"<{}>"是我用smarty的标签!
      

  6.   

    难道中国人的标签都被用完了吗?这个 <~  ~> 如何?
      

  7.   

    不会,中国人的标签是:
    <中国龙 /*代码*/ 中国龙>
    还有如果是英文的可以是:
    <( /*代码*/ )>