Well short_open_tag allows you to use <? and <?= in addition to <?php while writing the code. All that you have to do for this setting is
- Open your php.ini file
- Search for ‘short_open_tag’ directive
- The default value of ‘short_open_tag’ directive usually Off, now you can change it to On
- Save the php.ini
- Restart your PHP stacks to reflect the changes
Now you can write PHP code starts with <? … ?>. This is not recommended but you may need it if don’t want to make changes in your code.
No comments:
Post a Comment