How do I enable PHP short tags?

PHP short tags description from the official PHP documentation:


When PHP parses a file, it looks for opening and closing tags, which are <?php and ?> which tell PHP to start and stop interpreting the code between them.

PHP also allows for short open tag <? (which is discouraged since it is only available if enabled using theshort_open_tag php.ini configuration file directive, or if PHP was configured with the --enable-short-tags option).

To enable PHP short tags for a given website on your One Plan AEL hosting account, simply add the following line to your website's main .htaccess file:

php_value short_open_tag on

  • Email, SSL
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How do I enable PHP error logging?

To enable PHP error logging, simply add the following lines to your website's main .htaccess...

How do I disable the server RAM cache during website development?

The web servers are installed with a RAM cache to help speed up your website. The caching...

How to set core PHP directives (e.g. upload_max_filesize)

Some PHP scripts may require settings different from the defaults configured in the server's...