How to enable PHP short open tags via .htaccess

PHP short open tags is deprecated feature of PHP and is strongly discouraged.

When your website loads php code instead of your website, usually this means that your php file starts with short version of php tags: <? this code should always be changed to <?php this is the correct way of starting php script.

To fix short tags open create .htaccess file in your public_html directory with content

php_value short_open_tag 1

1 Like