Batch script to replace PHP short open tags with <?php

前端 未结 13 1823
轻奢々
轻奢々 2020-11-30 01:49

I have a large collection of php files written over the years and I need to properly replace all the short open tags into proper explicit open tags.

change \         


        
13条回答
  •  既然无缘
    2020-11-30 02:50

    It's typical for XML/XHTML pages to include following code:

    '; ?>
    

    Of course that should not be changed neither to:

    '; ?>
    

    nor:

    '; ?>
    

提交回复
热议问题