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 shuld 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
Copy/pasted from old server, now php not working
No php interpretation since migration
Migration to new panel
What's trouble with PHP?
Copy/pasted from old server, now php not working
PHP.ini : short_open_tag DISABLED
$_SESSION doesn't work
Php code don't work
Problema con php no despliega la variable
Configuracion de PHP
Problems with PHP scripts
PHP acting like HTML
Inserted add in echo "</div></html>" caused errors
Gallery requires short_open_tag to be on. Please enable it in your php.ini
Php help short-tags>?
Php setting enable
Error in the code in install.php
PHP is not displayed correctly
Migration Discussion
Application error yclas
PHP not activated?
closed #4