Search Our Database

How to enable the short_open_tag option in PHP

Last updated on |
by

If you enable the short_open_tag feature in your PHP setup, you can write your php script with

<? //---Your PHP commands ?>

Instead of


To enable the short_open_tag option, you can edit the php.ini file.

vi /usr/local/lib/php.ini

And set the short_open_tag value to:

short_open_tag = On