Miscellaneous ·

PHP Short Tag Conversion Program

  • A program that converts short tags (<?) in PHP files to long tags (<?php).
  • For modified files, .bak is added to the original file’s extension.
  • <?=$hello?> is converted to <?php echo $hello; ?>.
  • If you use the -s option, <?= is not changed.
  • Currently, only UTF-8 format is supported.

How to Use

ConvertShortOpenTag.exe [options] {filename or folder name}

Download

License

  • Kalmuri is freeware. You may use it freely without restrictions on where you use it, including at work, at home, in government offices, and at school.

Notes

  • When installing the server, I set short_open_tag to on by default, and the web hosting I used also had it on.
  • Since I usually wrote code using <?, I made this after realizing I had missed some instances of <?php in the source code I had already published and distributed.

Related Links

  • Source: https://github.com/newkilho/ConvertShortOpenTag

Leave a Reply

Your email address will not be published. Required fields are marked *