Kilho.net
Miscellaneous

PHP Short Tag Conversion Program

  • A program that converts short tags (<?) to long tags (<?php) in PHP files.
  • For modified files, the original file is given the .bak extension.
  • <?=$hello?> is converted to <?php echo $hello; ?>.
  • When the -s option is used, <?= is not converted.
  • Currently supports UTF-8 format only.

How to Use

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

Download

Related Links

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

License

  • Kalmuri is freeware. You can use it freely anywhere, including at work, at home, in government offices, and in schools.

A Few Thoughts

  • When I set up the server, I enabled short_open_tag by default, and the web hosting service I used had it enabled too.
  • Since I usually write with <?, I made this after discovering that some instances of <?php had been missed in the source code I published and distributed.

Leave a Reply

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